Module org.eclipse.persistence.core
Enum AttributeNamePrefix
- java.lang.Object
-
- java.lang.Enum<AttributeNamePrefix>
-
- org.eclipse.persistence.internal.mappings.converters.AttributeNamePrefix
-
- All Implemented Interfaces:
Serializable,Comparable<AttributeNamePrefix>
public enum AttributeNamePrefix extends Enum<AttributeNamePrefix>
INTERNAL: Attribute name prefixes.- Author:
- Tomas Kraus
-
-
Field Summary
Fields Modifier and Type Field Description static intLENGTHINTERNAL: Attribute name prefixes enumeration length.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()INTERNAL: Get attribute name prefix identifier.StringtoString()INTERNAL: Get instance value in human readable form.static AttributeNamePrefixtoValue(String name)INTERNAL: Returns anAttributeNamePrefixinstance withnameequal to the specifiedString.static AttributeNamePrefixvalueOf(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.
-
-
-
Enum Constant Detail
-
NULL
public static final AttributeNamePrefix NULL
INTERNAL: No attribute name prefix.
-
KEY
public static final AttributeNamePrefix KEY
INTERNAL: Attribute name prefix is"key".
-
VALUE
public static final AttributeNamePrefix VALUE
INTERNAL: Attribute name prefix is"value".
-
-
Method Detail
-
values
public static AttributeNamePrefix[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeNamePrefix c : AttributeNamePrefix.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeNamePrefix valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toValue
public static AttributeNamePrefix toValue(String name)
INTERNAL: Returns anAttributeNamePrefixinstance withnameequal to the specifiedString. TheAttributeNamePrefixreturned represents existing value only if specifiedStringmatches anyStringreturned bygetNamemethod. Search fornameis case sensitive. Otherwisenullvalue is returned.- Parameters:
name-getName()value to search for correspondingAttributeNamePrefixinstance.- Returns:
AttributeNamePrefixvalue represented byStringornullif value was not recognized.
-
getName
public String getName()
INTERNAL: Get attribute name prefix identifier.- Returns:
- Attribute name prefix identifier.
-
toString
public String toString()
INTERNAL: Get instance value in human readable form.- Overrides:
toStringin classEnum<AttributeNamePrefix>- Returns:
- Instance value in human readable form.
-
-