Class TLcdXMLSchemaElementIdentifier
java.lang.Object
com.luciad.format.xml.bind.schema.TLcdXMLSchemaElementIdentifier
An identifier for XML schema elements.
The following table gives an overview of which types exist and how they are represented by a
TLcdXMLSchemaTypeIdentifier.
| Schema element | TypeName value | ElementNames value | |
|---|---|---|---|
| Global element | null | element name | null |
| Local element | enclosing global type's name or null if there is no enclosing global type | stack of element names identifying the local type (either starts with a global element name if there is no enclosing global type, or with the local element name within the enclosing global type) | null |
- Since:
- 9.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the actual element name of this element identifier.QName[]Returns the element name stack of this XML schema element identifier.Returns the name of the model group in which this element is defined.Returns the typename that is part of this identifier, ornullif this element has no enclosing global type.inthashCode()booleanisGlobal()Returnstrueif this identifier represents a global element,falseotherwise.newGlobalElementInstance(QName aGlobalElementName) Returns an instance of aTLcdXMLSchemaElementIdentifierrepresenting the specified XML global schema element.newInstance(QName aTypeName, QName[] aElementNames) Returns an instance of aTLcdXMLSchemaElementIdentifierrepresenting the specified XML schema element.newInstance(QName aTypeName, QName aGroupName, QName[] aElementNames) Returns an instance of aTLcdXMLSchemaElementIdentifierrepresenting the specified XML schema element.toString()
-
Method Details
-
newInstance
Returns an instance of aTLcdXMLSchemaElementIdentifierrepresenting the specified XML schema element.- Parameters:
aTypeName- a global type nameaElementNames- a stack of element names- Returns:
- an instance of a
TLcdXMLSchemaElementIdentifierrepresenting the specified XML schema element. - Throws:
NullPointerException- ifaElementNamesisnull.
-
newInstance
public static TLcdXMLSchemaElementIdentifier newInstance(QName aTypeName, QName aGroupName, QName[] aElementNames) Returns an instance of aTLcdXMLSchemaElementIdentifierrepresenting the specified XML schema element.- Parameters:
aTypeName- a global type nameaGroupName- a global model group nameaElementNames- a stack of element names- Returns:
- an instance of a
TLcdXMLSchemaElementIdentifierrepresenting the specified XML schema element. - Throws:
NullPointerException- ifaElementNamesisnull.
-
newGlobalElementInstance
Returns an instance of aTLcdXMLSchemaElementIdentifierrepresenting the specified XML global schema element.- Parameters:
aGlobalElementName- a global element name- Returns:
- an instance of a
TLcdXMLSchemaElementIdentifierrepresenting the specified XML schema element. - Throws:
NullPointerException- ifaGlobalElementNameisnull.
-
isGlobal
public boolean isGlobal()Returnstrueif this identifier represents a global element,falseotherwise.- Returns:
trueif this identifier represents a global element,falseotherwise.
-
getElementNames
Returns the element name stack of this XML schema element identifier.- Returns:
- the element name stack of this XML schema element identifier.
-
getElementName
Returns the actual element name of this element identifier.- Returns:
- the actual element name of this element identifier.
-
getGroupName
Returns the name of the model group in which this element is defined. Returnsnullif the element is not defined with in a group.- Returns:
- the actual group name of this element identifier.
-
getTypeName
Returns the typename that is part of this identifier, ornullif this element has no enclosing global type.- Returns:
- the typename that is part of this identifier, or
nullif this element has no enclosing global type.
-
toString
-
hashCode
public int hashCode() -
equals
-