public enum AttributeNamePrefix extends Enum<AttributeNamePrefix>
Enum Constant and Description |
---|
KEY
INTERNAL: Attribute name prefix is
"key" . |
NULL
INTERNAL: No attribute name prefix.
|
VALUE
INTERNAL: Attribute name prefix is
"value" . |
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH
INTERNAL: Attribute name prefixes enumeration length.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
INTERNAL:
Get attribute name prefix identifier.
|
String |
toString()
INTERNAL:
Get instance value in human readable form.
|
static AttributeNamePrefix |
toValue(String name)
INTERNAL:
Returns an
AttributeNamePrefix instance with name equal to the specified String . |
static AttributeNamePrefix |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeNamePrefix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeNamePrefix NULL
public static final AttributeNamePrefix KEY
"key"
.public static final AttributeNamePrefix VALUE
"value"
.public static final int LENGTH
public static AttributeNamePrefix[] values()
for (AttributeNamePrefix c : AttributeNamePrefix.values()) System.out.println(c);
public static AttributeNamePrefix 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 AttributeNamePrefix toValue(String name)
AttributeNamePrefix
instance with name
equal to the specified String
.
The AttributeNamePrefix
returned represents existing value only if specified String
matches
any String
returned by getName
method. Search for name
is case sensitive. Otherwise
null
value is returned.name
- getName()
value to search for corresponding AttributeNamePrefix
instance.AttributeNamePrefix
value represented by String
or null
if value was
not recognized.public String getName()
public String toString()
toString
in class Enum<AttributeNamePrefix>
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference