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,
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.
|
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, XSComponent source, CCustomizations customizations, Locator loc)
name
- public CEnumLeafInfo getEnclosingClass()
EnumConstant
EnumLeafInfo
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()
EnumConstant
In the above example this method return "ONE" and "TWO".
getName
in interface EnumConstant<NType,NClass>
public XSComponent getSchemaComponent()
CCustomizable
getSchemaComponent
in interface CCustomizable
public CCustomizations getCustomizations()
CCustomizable
getCustomizations
in interface CCustomizable
Plugin.getCustomizationURIs()
public Locator getLocator()
CCustomizable
getLocator
in interface CCustomizable
Copyright © 2021 JBoss by Red Hat. All rights reserved.