Class CEnumConstant

java.lang.Object
com.sun.tools.xjc.model.CEnumConstant
All Implemented Interfaces:
CCustomizable, com.sun.xml.bind.v2.model.core.EnumConstant<NType,NClass>

public final class CEnumConstant extends Object implements com.sun.xml.bind.v2.model.core.EnumConstant<NType,NClass>, CCustomizable
Enumeration constant.
Author:
Kohsuke Kawaguchi
  • Field Details

    • name

      public final String name
      Name of the constant.
    • javadoc

      public final String javadoc
      Javadoc comment. Can be null.
  • Constructor Details

  • Method Details

    • getEnclosingClass

      public CEnumLeafInfo getEnclosingClass()
      Specified by:
      getEnclosingClass in interface com.sun.xml.bind.v2.model.core.EnumConstant<NType,NClass>
    • getLexicalValue

      public String getLexicalValue()
      Specified by:
      getLexicalValue in interface com.sun.xml.bind.v2.model.core.EnumConstant<NType,NClass>
    • getName

      public String getName()
      Specified by:
      getName in interface com.sun.xml.bind.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.)
    • getCustomizations

      public CCustomizations getCustomizations()
      Description copied from interface: CCustomizable
      Gets the list of customizations attached to this model component.
      Specified by:
      getCustomizations in interface CCustomizable
      Returns:
      can be an empty list but never be null. The returned list is read-only. Do not modify.
      See Also:
    • 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.