|
||||||||||
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 | |
---|---|
java.lang.String |
javadoc
Javadoc comment. |
java.lang.String |
name
Name of the constant. |
Constructor Summary | |
---|---|
CEnumConstant(java.lang.String name,
java.lang.String javadoc,
java.lang.String lexical,
com.sun.xml.xsom.XSComponent source,
CCustomizations customizations,
org.xml.sax.Locator loc)
|
Method Summary | |
---|---|
CCustomizations |
getCustomizations()
Gets the list of customizations attached to this model component. |
CEnumLeafInfo |
getEnclosingClass()
Gets the EnumLeafInfo to which this constant belongs to. |
java.lang.String |
getLexicalValue()
Lexical value of this constant. |
org.xml.sax.Locator |
getLocator()
Gets the source location in the schema from which this model component is created. |
java.lang.String |
getName()
Gets the constant name. |
com.sun.xml.xsom.XSComponent |
getSchemaComponent()
If this model object is built from XML Schema, this property returns a schema component from which the model is built. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String name
public final java.lang.String javadoc
Constructor Detail |
---|
public CEnumConstant(java.lang.String name, java.lang.String javadoc, java.lang.String lexical, com.sun.xml.xsom.XSComponent source, CCustomizations customizations, org.xml.sax.Locator loc)
name
- Method Detail |
---|
public CEnumLeafInfo getEnclosingClass()
EnumConstant
EnumLeafInfo
to which this constant belongs to.
getEnclosingClass
in interface EnumConstant<NType,NClass>
public java.lang.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 java.lang.String getName()
EnumConstant
In the above example this method return "ONE" and "TWO".
getName
in interface EnumConstant<NType,NClass>
public com.sun.xml.xsom.XSComponent getSchemaComponent()
CCustomizable
getSchemaComponent
in interface CCustomizable
public CCustomizations getCustomizations()
CCustomizable
getCustomizations
in interface CCustomizable
Plugin.getCustomizationURIs()
public org.xml.sax.Locator getLocator()
CCustomizable
getLocator
in interface CCustomizable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |