Class TLcdXMLSchemaType

java.lang.Object
com.luciad.format.xml.schema.TLcdXMLSchemaType

public class TLcdXMLSchemaType extends Object
Deprecated.
Use of the com.format.xml.schema API has been deprecated. Instead, use the com.format.xml.bind.schema API.
Representation of a type in an XML schema.

This class is still subject to API changes; it should not be instantiated or used by users.

  • Constructor Details

    • TLcdXMLSchemaType

      public TLcdXMLSchemaType(TLcdXMLSchema aSchema)
      Deprecated.
      Creates a new TLcdXMLType.
    • TLcdXMLSchemaType

      public TLcdXMLSchemaType(TLcdXMLSchema aSchema, TLcdXMLName aName)
      Deprecated.
      Creates a new TLcdXMLType, initialized with the given name.
      Parameters:
      aName - the name of the type to be initialized.
      Throws:
      NullPointerException - if the given name is null.
  • Method Details

    • getName

      public TLcdXMLName getName()
      Deprecated.
      Returns the XML name of this type.
      Returns:
      the XML name of this type.
    • getListType

      public TLcdXMLSchemaType getListType()
      Deprecated.
      Returns the list type of this type, or null if this type isn't a list type.
      Returns:
      the list type of this type, or null if this type isn't a list type.
    • getUnionType

      public TLcdXMLSchemaType getUnionType(int aIndex)
      Deprecated.
      Returns the type contained in this union type, at the given index.
      Parameters:
      aIndex - the index of the type to be returned.
      Returns:
      the type contained in this union type, at the given index.
      Throws:
      IndexOutOfBoundsException - if aIndex < 0 || aIndex >= getUnionTypeCount()
    • getUnionTypeCount

      public int getUnionTypeCount()
      Deprecated.
      Returns the number of types, contained in this union type, or 0 if this isn't a union type.
      Returns:
      the number of types, contained in this union type, or 0 if this isn't a union type.
    • getBaseType

      public TLcdXMLSchemaType getBaseType()
      Deprecated.
      Returns the base type of this type, or null if is the top level type.
      Returns:
      the base type of this type.
    • setBaseType

      public void setBaseType(TLcdXMLSchemaType aSuperType)
      Deprecated.
      Sets the base type for this type.
      Parameters:
      aSuperType - the base type for this type.
    • isAnonymous

      public boolean isAnonymous()
      Deprecated.
      Returns true if this type is anonymous, false otherwise.
      Returns:
      true if this type is anonymous, false otherwise.
    • isMixed

      public boolean isMixed()
      Deprecated.
      Returns true if the type has mixed content, false otherwise.
      Returns:
      true if this type has mixed content, false otherwise.
    • getElement

      public TLcdXMLSchemaElement getElement(TLcdXMLName aName)
      Deprecated.
      Returns the child element with the given name, or null if there is no child element with the given name.
      Parameters:
      aName - the name of the child element to be returned.
      Returns:
      the child element with the given name.
      Throws:
      NullPointerException - if the given name is null.
    • getElement

      public TLcdXMLSchemaElement getElement(int aIndex)
      Deprecated.
      Returns the child element at the given index.
      Parameters:
      aIndex - the index of the child element to be returned.
      Returns:
      the child element at the given index.
      Throws:
      IndexOutOfBoundsException - if aIndex < 0 || aIndex >= getElementCount()
    • getElementCount

      public int getElementCount()
      Deprecated.
      Returns the number of child elements defined for this type.
      Returns:
      the number of child elements defined for this type.
    • setElements

      public void setElements(TLcdXMLSchemaElement[] aElements)
      Deprecated.
    • getAttribute

      public TLcdXMLSchemaAttribute getAttribute(int aIndex)
      Deprecated.
      Returns the attribute at the given index.
      Parameters:
      aIndex - the index of the attribute to be returned.
      Returns:
      the attribute at the given index.
      Throws:
      IndexOutOfBoundsException - if aIndex < 0 || aIndex >= getAttributeCount()
    • getAttributeCount

      public int getAttributeCount()
      Deprecated.
      Returns the number of attributes defined for this type.
      Returns:
      the number of attributes defined for this type.
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object