|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.v2.model.impl.EnumConstantImpl<T,C,F,M>
class EnumConstantImpl<T,C,F,M>
Field Summary | |
---|---|
protected String |
lexical
|
protected String |
name
|
protected EnumConstantImpl<T,C,F,M> |
next
All the constants of the EnumConstantImpl is linked in one list. |
protected EnumLeafInfoImpl<T,C,F,M> |
owner
|
Constructor Summary | |
---|---|
EnumConstantImpl(EnumLeafInfoImpl<T,C,F,M> owner,
String name,
String lexical,
EnumConstantImpl<T,C,F,M> next)
|
Method Summary | |
---|---|
EnumLeafInfo<T,C> |
getEnclosingClass()
Gets the EnumLeafInfo to which this constant belongs to. |
String |
getLexicalValue()
Lexical value of this constant. |
String |
getName()
Gets the constant name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String lexical
protected final EnumLeafInfoImpl<T,C,F,M> owner
protected final String name
protected final EnumConstantImpl<T,C,F,M> next
EnumConstantImpl
is linked in one list.
Constructor Detail |
---|
public EnumConstantImpl(EnumLeafInfoImpl<T,C,F,M> owner, String name, String lexical, EnumConstantImpl<T,C,F,M> next)
Method Detail |
---|
public EnumLeafInfo<T,C> getEnclosingClass()
EnumConstant
EnumLeafInfo
to which this constant belongs to.
getEnclosingClass
in interface EnumConstant<T,C>
public final String getLexicalValue()
EnumConstant
This value should be evaluated against
EnumLeafInfo.getBaseType()
to obtain the typed value.
This is the same value as written in the XmlEnumValue
annotation.
In the above example, this method returns "1" and "2".
getLexicalValue
in interface EnumConstant<T,C>
public final String getName()
EnumConstant
In the above example this method return "ONE" and "TWO".
getName
in interface EnumConstant<T,C>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |