Class 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
    • Field Detail

      • name

        public final String name
        Name of the constant.
      • javadoc

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

      • getEnclosingClass

        public CEnumLeafInfo getEnclosingClass()
        Specified by:
        getEnclosingClass in interface org.glassfish.jaxb.core.v2.model.core.EnumConstant<NType,​NClass>
      • getLexicalValue

        public String getLexicalValue()
        Specified by:
        getLexicalValue in interface org.glassfish.jaxb.core.v2.model.core.EnumConstant<NType,​NClass>
      • getName

        public String getName()
        Specified by:
        getName in interface org.glassfish.jaxb.core.v2.model.core.EnumConstant<NType,​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.