public final class CEnumConstant extends Object implements EnumConstant<NType,NClass>, CCustomizable
| Modifier and Type | Field and Description |
|---|---|
String |
javadoc
Javadoc comment.
|
String |
name
Name of the constant.
|
| Constructor and Description |
|---|
CEnumConstant(String name,
String javadoc,
String lexical,
com.sun.xml.xsom.XSComponent source,
CCustomizations customizations,
Locator loc) |
| Modifier and Type | Method and Description |
|---|---|
CCustomizations |
getCustomizations()
Gets the list of customizations attached to this model component.
|
CEnumLeafInfo |
getEnclosingClass()
Gets the
EnumLeafInfo to which this constant belongs to. |
String |
getLexicalValue()
Lexical value of this constant.
|
Locator |
getLocator()
Gets the source location in the schema from which this model component is created.
|
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.
|
public final String name
public final String javadoc
public CEnumConstant(String name, String javadoc, String lexical, com.sun.xml.xsom.XSComponent source, CCustomizations customizations, Locator loc)
name - public CEnumLeafInfo getEnclosingClass()
EnumConstantEnumLeafInfo to which this constant belongs to.getEnclosingClass in interface EnumConstant<NType,NClass>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()
EnumConstantIn the above example this method return "ONE" and "TWO".
getName in interface EnumConstant<NType,NClass>public com.sun.xml.xsom.XSComponent getSchemaComponent()
CCustomizablegetSchemaComponent in interface CCustomizablepublic CCustomizations getCustomizations()
CCustomizablegetCustomizations in interface CCustomizablePlugin.getCustomizationURIs()public Locator getLocator()
CCustomizablegetLocator in interface CCustomizableCopyright © 2017 JBoss by Red Hat. All rights reserved.