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
ConstructorDescriptionTLcdXMLSchemaUtil
(ILcdXMLSchemaProvider aSchemaProvider) Deprecated.Creates a newTLcdXMLUtil
instance, 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, ornull
if none could be found.boolean
isOfType
(TLcdXMLSchemaType aType, TLcdXMLSchemaType aSuperType) Deprecated.Returnstrue
if the given type is derived from the given super type,false
otherwise.boolean
isOfType
(TLcdXMLName aTypeName, TLcdXMLName aSuperTypeName) Deprecated.Returnstrue
if type, corresponding to the given type name, is derived from the super type, corresponding to the given super type name,false
otherwise.boolean
isSubstitutableBy
(TLcdXMLSchemaElement aSubstitutableElement, TLcdXMLSchemaElement aElement) Deprecated.Returnstrue
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.boolean
isSubstitutableBy
(TLcdXMLName aSubstitutableElementName, TLcdXMLName aElementName) Deprecated.Returnstrue
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.
-
Constructor Details
-
TLcdXMLSchemaUtil
Deprecated.Creates a newTLcdXMLUtil
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 isnull
.
-
-
Method Details
-
getType
Deprecated.Returns the global type that corresponds to the given name, ornull
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 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
null
if 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
null
if none could be found. - Throws:
NullPointerException
- if the given stack isnull
.
-
isOfType
Deprecated.Returnstrue
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 isnull
.
-
isOfType
Deprecated.Returnstrue
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 isnull
.
-
isSubstitutableBy
Deprecated.Returnstrue
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 isnull
.
-
isSubstitutableBy
public boolean isSubstitutableBy(TLcdXMLSchemaElement aSubstitutableElement, TLcdXMLSchemaElement aElement) Deprecated.Returnstrue
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 isnull
.
-
com.format.xml.schema
API has been deprecated. Instead, use thecom.format.xml.bind.schema
API.