Package com.luciad.format.xml.schema
Class TLcdXMLSchemaUtil
java.lang.Object
com.luciad.format.xml.schema.TLcdXMLSchemaUtil
Deprecated.
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 Summary
ConstructorsConstructorDescriptionTLcdXMLSchemaUtil(ILcdXMLSchemaProvider aSchemaProvider) Deprecated.Creates a newTLcdXMLUtilinstance, initialized with the given schema provider. -
Method Summary
Modifier and TypeMethodDescriptiongetElement(ILcdXMLNameStack aElementNameStack) Deprecated.Returns the TLcdXMLElement (possibly, corresponding to the top element on the given element name stack.getElement(TLcdXMLName aElementName) Deprecated.Returns the global element that corresponds to the given name.getType(TLcdXMLName aTypeName) Deprecated.Returns the global type that corresponds to the given name, ornullif none could be found.booleanisOfType(TLcdXMLSchemaType aType, TLcdXMLSchemaType aSuperType) Deprecated.Returnstrueif the given type is derived from the given super type,falseotherwise.booleanisOfType(TLcdXMLName aTypeName, TLcdXMLName aSuperTypeName) Deprecated.Returnstrueif type, corresponding to the given type name, is derived from the super type, corresponding to the given super type name,falseotherwise.booleanisSubstitutableBy(TLcdXMLSchemaElement aSubstitutableElement, TLcdXMLSchemaElement aElement) Deprecated.Returnstrueif 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),falseotherwise.booleanisSubstitutableBy(TLcdXMLName aSubstitutableElementName, TLcdXMLName aElementName) Deprecated.Returnstrueif 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),falseotherwise.
-
Constructor Details
-
TLcdXMLSchemaUtil
Deprecated.Creates a newTLcdXMLUtilinstance, 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 isnull.
-
-
Method Details
-
getType
Deprecated.Returns the global type that corresponds to the given name, ornullif 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
nullif none could be found. - Throws:
NullPointerException- if the given name isnull.
-
getElement
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
nullif none could be found. - Throws:
NullPointerException- if the given name isnull.
-
getElement
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
nullif none could be found. - Throws:
NullPointerException- if the given stack isnull.
-
isOfType
Deprecated.Returnstrueif type, corresponding to the given type name, is derived from the super type, corresponding to the given super type name,falseotherwise.- Parameters:
aTypeName- the name of the type to be tested.aSuperTypeName- the name of the super type.- Returns:
trueif the given type is derived from the given super type,falseotherwise.- Throws:
NullPointerException- if one of the arguments isnull.
-
isOfType
Deprecated.Returnstrueif the given type is derived from the given super type,falseotherwise.- Parameters:
aType- the type to be tested.aSuperType- the super type.- Returns:
trueif the given type is derived from the given super type,falseotherwise.- Throws:
NullPointerException- if one of the arguments isnull.
-
isSubstitutableBy
Deprecated.Returnstrueif 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),falseotherwise.- Parameters:
aSubstitutableElementName- the name of the head of the substitution group.aElementName- the name of the element to be tested.- Returns:
trueif the first element is substitutable by the second one,falseotherwise.- Throws:
NullPointerException- if one of the arguments isnull.
-
isSubstitutableBy
public boolean isSubstitutableBy(TLcdXMLSchemaElement aSubstitutableElement, TLcdXMLSchemaElement aElement) Deprecated.Returnstrueif 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),falseotherwise.- Parameters:
aSubstitutableElement- the head of the substitution group.aElement- the element to be tested.- Returns:
trueif the first element is substitutable by the second one,falseotherwise.- Throws:
NullPointerException- if one of the arguments isnull.
-
com.format.xml.schemaAPI has been deprecated. Instead, use thecom.format.xml.bind.schemaAPI.