Class CEnumConstant

  • All Implemented Interfaces:
    CCustomizable, EnumConstant<com.sun.tools.xjc.model.nav.NType,​com.sun.tools.xjc.model.nav.NClass>

    public final class CEnumConstant
    extends Object
    implements EnumConstant<com.sun.tools.xjc.model.nav.NType,​com.sun.tools.xjc.model.nav.NClass>, CCustomizable
    Enumeration constant.
    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • name

        public final String name
        Name of the constant.
      • javadoc

        public final String javadoc
        Javadoc comment. Can be null.
    • Method Detail

      • getLexicalValue

        public String getLexicalValue()
        Specified by:
        getLexicalValue in interface EnumConstant<com.sun.tools.xjc.model.nav.NType,​com.sun.tools.xjc.model.nav.NClass>
      • getName

        public String getName()
        Specified by:
        getName in interface EnumConstant<com.sun.tools.xjc.model.nav.NType,​com.sun.tools.xjc.model.nav.NClass>
      • 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 interface CCustomizable
        Returns:
        null if the model is built from sources other than XML Schema (such as DTD.)
      • 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 interface CCustomizable
        Returns:
        never null.