com.sun.xml.bind.v2.model.core
public interface EnumConstant<T,C>
Javadoc in this class uses the following sample to explain the semantics:
@XmlEnum(Integer.class) enum Foo { @XmlEnumValue("1") ONE, @XmlEnumValue("2") TWO }
See Also: EnumLeafInfo
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.
|
Returns: never null.
This value should be evaluated against 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".
Returns: never null.
In the above example this method return "ONE" and "TWO".
Returns: never null. A valid Java identifier.