Package com.sun.tools.xjc.model
Class CEnumConstant
- java.lang.Object
-
- com.sun.tools.xjc.model.CEnumConstant
-
- All Implemented Interfaces:
CCustomizable
,org.glassfish.jaxb.core.v2.model.core.EnumConstant<NType,NClass>
public final class CEnumConstant extends Object implements org.glassfish.jaxb.core.v2.model.core.EnumConstant<NType,NClass>, CCustomizable
Enumeration constant.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description CEnumConstant(String name, String javadoc, String lexical, XSComponent source, CCustomizations customizations, Locator loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CCustomizations
getCustomizations()
Gets the list of customizations attached to this model component.CEnumLeafInfo
getEnclosingClass()
String
getLexicalValue()
Locator
getLocator()
Gets the source location in the schema from which this model component is created.String
getName()
XSComponent
getSchemaComponent()
If this model object is built from XML Schema, this property returns a schema component from which the model is built.
-
-
-
Constructor Detail
-
CEnumConstant
public CEnumConstant(String name, String javadoc, String lexical, XSComponent source, CCustomizations customizations, Locator loc)
- Parameters:
name
-
-
-
Method Detail
-
getEnclosingClass
public CEnumLeafInfo getEnclosingClass()
-
getLexicalValue
public String getLexicalValue()
-
getName
public String getName()
-
getSchemaComponent
public XSComponent getSchemaComponent()
Description copied from interface:CCustomizable
If this model object is built from XML Schema, this property returns a schema component from which the model is built.- Specified by:
getSchemaComponent
in interfaceCCustomizable
- Returns:
- null if the model is built from sources other than XML Schema (such as DTD.)
-
getCustomizations
public CCustomizations getCustomizations()
Description copied from interface:CCustomizable
Gets the list of customizations attached to this model component.- Specified by:
getCustomizations
in interfaceCCustomizable
- Returns:
- can be an empty list but never be null. The returned list is read-only. Do not modify.
- See Also:
Plugin.getCustomizationURIs()
-
getLocator
public Locator getLocator()
Description copied from interface:CCustomizable
Gets the source location in the schema from which this model component is created.- Specified by:
getLocator
in interfaceCCustomizable
- Returns:
- never null.
-
-