Class TLcdXMLSchemaUtil

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

public final class TLcdXMLSchemaUtil extends Object
Deprecated.
Use of the com.format.xml.schema API has been deprecated. Instead, use the com.format.xml.bind.schema API.
Utility class for analyzing XML structure. Provides some methods for retrieving elements and types in a schema, and checking inheritance and substitutions of pairs of elements.
  • Constructor Details

    • TLcdXMLSchemaUtil

      public TLcdXMLSchemaUtil(ILcdXMLSchemaProvider aSchemaProvider)
      Deprecated.
      Creates a new TLcdXMLUtil instance, initialized with the given schema provider.
      Parameters:
      aSchemaProvider - the schema provider to be used by this util instance.
      Throws:
      NullPointerException - if the given schema provider is null.
  • Method Details

    • getType

      public TLcdXMLSchemaType getType(TLcdXMLName aTypeName)
      Deprecated.
      Returns the global type that corresponds to the given name, or null if none could be found.
      Parameters:
      aTypeName - the type name for which to return the type.
      Returns:
      the type corresponding to the given type name, or null if none could be found.
      Throws:
      NullPointerException - if the given name is null.
    • getElement

      public TLcdXMLSchemaElement getElement(TLcdXMLName aElementName)
      Deprecated.
      Returns the global element that corresponds to the given name.
      Parameters:
      aElementName - the element name for which to return the element.
      Returns:
      the element corresponding to the given element name, or null if none could be found.
      Throws:
      NullPointerException - if the given name is null.
    • getElement

      public TLcdXMLSchemaElement getElement(ILcdXMLNameStack aElementNameStack)
      Deprecated.
      Returns the TLcdXMLElement (possibly, corresponding to the top element on the given element name stack.
      Parameters:
      aElementNameStack - the element name stack, for which to return an element.
      Returns:
      the element corresponding to the element name on top of the name stack, or null if none could be found.
      Throws:
      NullPointerException - if the given stack is null.
    • isOfType

      public boolean isOfType(TLcdXMLName aTypeName, TLcdXMLName aSuperTypeName)
      Deprecated.
      Returns true if type, corresponding to the given type name, is derived from the super type, corresponding to the given super type name, false otherwise.
      Parameters:
      aTypeName - the name of the type to be tested.
      aSuperTypeName - the name of the super type.
      Returns:
      true if the given type is derived from the given super type, false otherwise.
      Throws:
      NullPointerException - if one of the arguments is null.
    • isOfType

      public boolean isOfType(TLcdXMLSchemaType aType, TLcdXMLSchemaType aSuperType)
      Deprecated.
      Returns true if the given type is derived from the given super type, false otherwise.
      Parameters:
      aType - the type to be tested.
      aSuperType - the super type.
      Returns:
      true if the given type is derived from the given super type, false otherwise.
      Throws:
      NullPointerException - if one of the arguments is null.
    • isSubstitutableBy

      public boolean isSubstitutableBy(TLcdXMLName aSubstitutableElementName, TLcdXMLName aElementName)
      Deprecated.
      Returns true if the element, corresponding to the first element name, is substitutable by the element, corresponding to the second name (i.e., the second element belongs to the substitution group for which the first one is the head element), false otherwise.
      Parameters:
      aSubstitutableElementName - the name of the head of the substitution group.
      aElementName - the name of the element to be tested.
      Returns:
      true if the first element is substitutable by the second one, false otherwise.
      Throws:
      NullPointerException - if one of the arguments is null.
    • isSubstitutableBy

      public boolean isSubstitutableBy(TLcdXMLSchemaElement aSubstitutableElement, TLcdXMLSchemaElement aElement)
      Deprecated.
      Returns true if the first element is substitutable by the second one (i.e., the second element belongs to the substitution group for which the first one is the head element), false otherwise.
      Parameters:
      aSubstitutableElement - the head of the substitution group.
      aElement - the element to be tested.
      Returns:
      true if the first element is substitutable by the second one, false otherwise.
      Throws:
      NullPointerException - if one of the arguments is null.