public static enum MetadataTransform.TransmissionDecision extends Enum<MetadataTransform.TransmissionDecision>
Transmission-Decision
to the Map
of params
supplied to the transform
method of the
MetadataTransform
.
If no Transmission-Decision
is set in the params, the default value
of AS_IS
is used.Enum Constant and Description |
---|
AS_IS
The document's metadata and content are to remain intact.
|
DO_NOT_INDEX
The document's metadata and content are discarded.
|
DO_NOT_INDEX_CONTENT
The document's content is discarded, but its metadata remains intact.
|
Modifier and Type | Method and Description |
---|---|
static MetadataTransform.TransmissionDecision |
from(String name)
Returns a
TransmissionDecision value with the given name ,
or the default value of AS_IS if name is null . |
String |
toString()
Returns the name of this
TransmissionDecision value. |
static MetadataTransform.TransmissionDecision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataTransform.TransmissionDecision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataTransform.TransmissionDecision AS_IS
as-is
.public static final MetadataTransform.TransmissionDecision DO_NOT_INDEX
do-not-index
.public static final MetadataTransform.TransmissionDecision DO_NOT_INDEX_CONTENT
do-not-index-content
.public static MetadataTransform.TransmissionDecision[] values()
for (MetadataTransform.TransmissionDecision c : MetadataTransform.TransmissionDecision.values()) System.out.println(c);
public static MetadataTransform.TransmissionDecision valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MetadataTransform.TransmissionDecision from(String name)
TransmissionDecision
value with the given name
,
or the default value of AS_IS
if name is null
.name
- the name of the TransmissionDecision valueTransmissionDecision
corresponding to name
IllegalArgumentException
- if there is no TransmissionDecision
value with name
.public String toString()
TransmissionDecision
value.toString
in class Enum<MetadataTransform.TransmissionDecision>