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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
INTERNAL: 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 AttributeNamePrefix
INTERNAL: Returns anAttributeNamePrefix
instance withname
equal to the specifiedString
.static AttributeNamePrefix
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 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 anAttributeNamePrefix
instance withname
equal to the specifiedString
. TheAttributeNamePrefix
returned represents existing value only if specifiedString
matches anyString
returned bygetName
method. Search forname
is case sensitive. Otherwisenull
value is returned.- Parameters:
name
-getName()
value to search for correspondingAttributeNamePrefix
instance.- Returns:
AttributeNamePrefix
value represented byString
ornull
if 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:
toString
in classEnum<AttributeNamePrefix>
- Returns:
- Instance value in human readable form.
-