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 TypeMethodDescriptionboolean
Returns 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, ornull
if this element has no enclosing global type.int
hashCode()
boolean
isGlobal()
Returnstrue
if this identifier represents a global element,false
otherwise.newGlobalElementInstance
(QName aGlobalElementName) Returns an instance of aTLcdXMLSchemaElementIdentifier
representing the specified XML global schema element.newInstance
(QName aTypeName, QName[] aElementNames) Returns an instance of aTLcdXMLSchemaElementIdentifier
representing the specified XML schema element.newInstance
(QName aTypeName, QName aGroupName, QName[] aElementNames) Returns an instance of aTLcdXMLSchemaElementIdentifier
representing the specified XML schema element.toString()
-
Method Details
-
newInstance
Returns an instance of aTLcdXMLSchemaElementIdentifier
representing the specified XML schema element.- Parameters:
aTypeName
- a global type nameaElementNames
- a stack of element names- Returns:
- an instance of a
TLcdXMLSchemaElementIdentifier
representing the specified XML schema element. - Throws:
NullPointerException
- ifaElementNames
isnull
.
-
newInstance
public static TLcdXMLSchemaElementIdentifier newInstance(QName aTypeName, QName aGroupName, QName[] aElementNames) Returns an instance of aTLcdXMLSchemaElementIdentifier
representing 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
TLcdXMLSchemaElementIdentifier
representing the specified XML schema element. - Throws:
NullPointerException
- ifaElementNames
isnull
.
-
newGlobalElementInstance
Returns an instance of aTLcdXMLSchemaElementIdentifier
representing the specified XML global schema element.- Parameters:
aGlobalElementName
- a global element name- Returns:
- an instance of a
TLcdXMLSchemaElementIdentifier
representing the specified XML schema element. - Throws:
NullPointerException
- ifaGlobalElementName
isnull
.
-
isGlobal
public boolean isGlobal()Returnstrue
if this identifier represents a global element,false
otherwise.- Returns:
true
if this identifier represents a global element,false
otherwise.
-
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. Returnsnull
if 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, ornull
if this element has no enclosing global type.- Returns:
- the typename that is part of this identifier, or
null
if this element has no enclosing global type.
-
toString
-
hashCode
public int hashCode() -
equals
-