|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.model.CEnumConstant
public final class CEnumConstant
Enumeration constant.
Field Summary | |
---|---|
String |
javadoc
Javadoc comment. |
String |
name
Name of the constant. |
Constructor Summary | |
---|---|
CEnumConstant(String name,
String javadoc,
String lexical,
Locator loc)
|
Method Summary | |
---|---|
CEnumLeafInfo |
getEnclosingClass()
Gets the EnumLeafInfo to which this constant belongs to. |
String |
getLexicalValue()
Lexical value of this constant. |
Locator |
getLocator()
|
String |
getName()
Gets the constant name. |
(package private) void |
setParent(CEnumLeafInfo parent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String name
public final String javadoc
Constructor Detail |
---|
public CEnumConstant(String name, String javadoc, String lexical, Locator loc)
name
- Method Detail |
---|
public CEnumLeafInfo getEnclosingClass()
EnumConstant
EnumLeafInfo
to which this constant belongs to.
getEnclosingClass
in interface EnumConstant<NType,NClass>
void setParent(CEnumLeafInfo parent)
public 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<NType,NClass>
public String getName()
EnumConstant
In the above example this method return "ONE" and "TWO".
getName
in interface EnumConstant<NType,NClass>
public Locator getLocator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |