Class TLcdXMLSchemaElement

java.lang.Object
com.luciad.format.xml.bind.schema.TLcdXMLSchemaElement

public final class TLcdXMLSchemaElement extends Object
Represents an element declaration in an XML Schema. An element has an identifier, uniquely defining the element within the schema, an associated type and, optionally, a substitution group it is part of.
Since:
9.0
  • Constructor Details

    • TLcdXMLSchemaElement

      public TLcdXMLSchemaElement(TLcdXMLSchemaElementIdentifier aIdentifier, TLcdXMLSchemaType aType, TLcdXMLSchemaElement aSubstitutionGroup)
      Creates a new TLcdXMLSchemaElement, with the specified identifier, type and substitution group.
      Parameters:
      aIdentifier - the unique identifier of the element to be created.
      aType - the type of the element to be created.
      aSubstitutionGroup - the substitution group the element to be created is part of, or null if it is not part of a substitution group.
  • Method Details

    • getIdentifier

      public TLcdXMLSchemaElementIdentifier getIdentifier()
      Returns the unique identifier of this schema element.
      Returns:
      the unique identifier of this schema element.
    • getType

      public TLcdXMLSchemaType getType()
      Return the type of this element.
      Returns:
      the type of this element.
    • getSubstitutionGroup

      public TLcdXMLSchemaElement getSubstitutionGroup()
      Return the substitution group this element is part of, or null if this element is not part of a substitution group.
      Returns:
      the substitution group this element is part of, or null if this element is not part of a substitution group.
    • isSubstitutableBy

      public boolean isSubstitutableBy(TLcdXMLSchemaElement aElement)
      Returns true if this element is substitutable by the specified element, false otherwise.
      Parameters:
      aElement - the element to be checked.
      Returns:
      true if this element is substitutable by the specified element, false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object