public static enum MetadataTransform.Keyset extends Enum<MetadataTransform.Keyset>
Metadata
, or the map of params
supplied to the transform
method of a
MetadataTransform
.
Suppose a transform wishes to examine or modify the display URL, which is
stored in the params
. The transform's configuration might include:
key=Display-URL
keyset=params
If unspecified, the default value is METADATA
.Enum Constant and Description |
---|
METADATA
The key/value(s) reside in the
Metadata . |
PARAMS
The key/value pair resides in the
Map of params . |
Modifier and Type | Method and Description |
---|---|
static MetadataTransform.Keyset |
from(String name)
Returns a
Keyset value with the given name , or the
default value of METADATA if name is null . |
String |
toString()
Returns the name of this
Keyset value. |
static MetadataTransform.Keyset |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataTransform.Keyset[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataTransform.Keyset METADATA
Metadata
.
This value's name is metadata
.public static final MetadataTransform.Keyset PARAMS
Map
of params
.
This value's name is params
.public static MetadataTransform.Keyset[] values()
for (MetadataTransform.Keyset c : MetadataTransform.Keyset.values()) System.out.println(c);
public static MetadataTransform.Keyset 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.Keyset from(String name)
Keyset
value with the given name
, or the
default value of METADATA
if name is null
.name
- the name of the Keyset valueKeyset
corresponding to name
IllegalArgumentException
- if there is no Keyset value with
name
.public String toString()
Keyset
value.toString
in class Enum<MetadataTransform.Keyset>