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>,java.lang.constant.Constable
INTERNAL:
Attribute name prefixes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intINTERNAL: Attribute name prefixes enumeration length. -
Method Summary
Modifier and TypeMethodDescriptiongetName()INTERNAL: Get attribute name prefix identifier.toString()INTERNAL: Get instance value in human readable form.static AttributeNamePrefixINTERNAL: Returns anAttributeNamePrefixinstance withnameequal to the specifiedString.static AttributeNamePrefixReturns 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 Details
-
NULL
INTERNAL: No attribute name prefix. -
KEY
INTERNAL: Attribute name prefix is"key". -
VALUE
INTERNAL: Attribute name prefix is"value".
-
-
Field Details
-
LENGTH
public static final int LENGTHINTERNAL: Attribute name prefixes enumeration length.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
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
INTERNAL: Get attribute name prefix identifier.- Returns:
- Attribute name prefix identifier.
-
toString
INTERNAL: Get instance value in human readable form.- Overrides:
toStringin classEnum<AttributeNamePrefix>- Returns:
- Instance value in human readable form.
-