|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EnumConstant<T,C>
Individual constant of an enumeration.
Javadoc in this class uses the following sample to explain the semantics:
@XmlEnum(Integer.class) enum Foo { @XmlEnumValue("1") ONE, @XmlEnumValue("2") TWO }
EnumLeafInfo
Method Summary | |
---|---|
EnumLeafInfo<T,C> |
getEnclosingClass()
Gets the EnumLeafInfo to which this constant belongs to. |
java.lang.String |
getLexicalValue()
Lexical value of this constant. |
java.lang.String |
getName()
Gets the constant name. |
Method Detail |
---|
EnumLeafInfo<T,C> getEnclosingClass()
EnumLeafInfo
to which this constant belongs to.
java.lang.String getLexicalValue()
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".
java.lang.String getName()
In the above example this method return "ONE" and "TWO".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |