Interface GlobalDef

All Known Implementing Classes:
AttributeGroup, BuiltInType, ComplexType, GenericType, GlobalAttribute, GlobalDeclaration, GlobalElement, ModelGroup, SimpleType

public interface GlobalDef
Interface for classes encapsulating XML Schema Elements, such as Elements, Attributes, and Type Definitions. There are two "families" of GlobalDefs: type definitions and declarations. Type definitions include GenericType, BuiltInType, SimpleType and ComplexType. Global Declarations include GlobalElement and GlobalAttributes.
Author:
ostwald

$Id $

  • Field Details

  • Method Details

    • getDataType

      int getDataType()
      Returns an integer contant that specifies whether this GlobalDef is Generic, Simple, Complex, Global or Built-in datatype.
      Returns:
      The dataType value
    • getType

      String getType()
      Returns string representation of the Global Def's dataType (e.g., "simpleType", "complexType", etc).
      Returns:
      The type value
    • getDocumentation

      String getDocumentation()
    • getName

      String getName()
      Returns the dataType name for this GlobalDef (e.g., "union.dateType", "stringTextType", etc).
      Returns:
      The name value
    • getNamespace

      org.dom4j.Namespace getNamespace()
    • getQualifiedName

      String getQualifiedName()
    • getQualifiedInstanceName

      String getQualifiedInstanceName()
      use prefix for namespace as defined at the instance level. NOTE: namespaces may not be defined at the instance level!
    • getLocation

      String getLocation()
      Returns string representation of URI to the schema file in which this GlobalDef is defined.
      Returns:
      The location value
    • getElement

      org.dom4j.Element getElement()
      Gets the element attribute of the GlobalDef object
      Returns:
      The element value
    • getElementAsXml

      String getElementAsXml()
    • toString

      String toString()
      Description of the Method
      Overrides:
      toString in class Object
      Returns:
      Description of the Return Value
    • getSchemaReader

      SchemaReader getSchemaReader()
    • isTypeDef

      boolean isTypeDef()
      Gets the builtIn attribute of the GlobalDef object
      Returns:
      The builtIn value
    • isBuiltIn

      boolean isBuiltIn()
      Gets the builtIn attribute of the GlobalDef object
      Returns:
      The builtIn value
    • isAnyType

      boolean isAnyType()
    • isSimpleType

      boolean isSimpleType()
      Gets the simpleType attribute of the GlobalDef object
      Returns:
      The simpleType value
    • isComplexType

      boolean isComplexType()
      Gets the complexType attribute of the GlobalDef object
      Returns:
      The complexType value
    • isModelGroup

      boolean isModelGroup()
    • isAttributeGroup

      boolean isAttributeGroup()
    • isGlobalDeclaration

      boolean isGlobalDeclaration()
      Gets the globalElement attribute of the GlobalDef object
      Returns:
      The globalElement value
    • isGlobalElement

      boolean isGlobalElement()
    • isGlobalAttribute

      boolean isGlobalAttribute()