Class DeclarationImpl

java.lang.Object
com.sun.xml.xsom.impl.ComponentImpl
com.sun.xml.xsom.impl.DeclarationImpl
All Implemented Interfaces:
XSComponent, XSDeclaration
Direct Known Subclasses:
AttributeDeclImpl, AttributesHolder, ElementDecl, ModelGroupDeclImpl, NotationImpl, SchemaSetImpl.AnySimpleType, SchemaSetImpl.AnyType, SimpleTypeImpl

abstract class DeclarationImpl extends ComponentImpl implements XSDeclaration
  • Field Details

    • name

      private final String name
    • targetNamespace

      private final String targetNamespace
    • anonymous

      private final boolean anonymous
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: XSDeclaration
      Gets the (local) name of the declaration.
      Specified by:
      getName in interface XSDeclaration
      Returns:
      null if this component is anonymous.
    • getTargetNamespace

      public String getTargetNamespace()
      Description copied from interface: XSDeclaration
      Target namespace to which this component belongs. "" is used to represent the default no namespace.
      Specified by:
      getTargetNamespace in interface XSDeclaration
    • isAnonymous

      public boolean isAnonymous()
      Deprecated.
      Specified by:
      isAnonymous in interface XSDeclaration
    • isGlobal

      public final boolean isGlobal()
      Description copied from interface: XSDeclaration
      Returns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.
      Specified by:
      isGlobal in interface XSDeclaration
    • isLocal

      public final boolean isLocal()
      Description copied from interface: XSDeclaration
      Returns true if this declaration is a local declaration. Equivalent of !isGlobal()
      Specified by:
      isLocal in interface XSDeclaration