Enum AttributeNamePrefix
- java.lang.Object
-
- java.lang.Enum<AttributeNamePrefix>
-
- org.eclipse.persistence.internal.mappings.converters.AttributeNamePrefix
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AttributeNamePrefix>
public enum AttributeNamePrefix extends java.lang.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 java.lang.StringgetName()INTERNAL: Get attribute name prefix identifier.java.lang.StringtoString()INTERNAL: Get instance value in human readable form.static AttributeNamePrefixtoValue(java.lang.String name)INTERNAL: Returns anAttributeNamePrefixinstance withnameequal to the specifiedString.static AttributeNamePrefixvalueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toValue
public static AttributeNamePrefix toValue(java.lang.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 java.lang.String getName()
INTERNAL: Get attribute name prefix identifier.- Returns:
- Attribute name prefix identifier.
-
toString
public java.lang.String toString()
INTERNAL: Get instance value in human readable form.- Overrides:
toStringin classjava.lang.Enum<AttributeNamePrefix>- Returns:
- Instance value in human readable form.
-
-