public class TLcdXMLSchemaElementIdentifier extends Object
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 |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
QName |
getElementName()
Returns the actual element name of this element identifier.
|
QName[] |
getElementNames()
Returns the element name stack of this XML schema element identifier.
|
QName |
getGroupName()
Returns the name of the model group in which this element is defined.
|
QName |
getTypeName()
Returns the typename that is part of this identifier, or
null if this element has no enclosing global type. |
int |
hashCode() |
boolean |
isGlobal()
Returns
true if this identifier represents a global element, false otherwise. |
static TLcdXMLSchemaElementIdentifier |
newGlobalElementInstance(QName aGlobalElementName)
Returns an instance of a
TLcdXMLSchemaElementIdentifier representing the specified XML global schema element. |
static TLcdXMLSchemaElementIdentifier |
newInstance(QName aTypeName,
QName[] aElementNames)
Returns an instance of a
TLcdXMLSchemaElementIdentifier representing the specified XML schema element. |
static TLcdXMLSchemaElementIdentifier |
newInstance(QName aTypeName,
QName aGroupName,
QName[] aElementNames)
Returns an instance of a
TLcdXMLSchemaElementIdentifier representing the specified XML schema element. |
String |
toString() |
public static TLcdXMLSchemaElementIdentifier newInstance(QName aTypeName, QName[] aElementNames)
TLcdXMLSchemaElementIdentifier
representing the specified XML schema element.aTypeName
- a global type nameaElementNames
- a stack of element namesTLcdXMLSchemaElementIdentifier
representing the specified XML schema element.NullPointerException
- if aElementNames
is null
.public static TLcdXMLSchemaElementIdentifier newInstance(QName aTypeName, QName aGroupName, QName[] aElementNames)
TLcdXMLSchemaElementIdentifier
representing the specified XML schema element.aTypeName
- a global type nameaGroupName
- a global model group nameaElementNames
- a stack of element namesTLcdXMLSchemaElementIdentifier
representing the specified XML schema element.NullPointerException
- if aElementNames
is null
.public static TLcdXMLSchemaElementIdentifier newGlobalElementInstance(QName aGlobalElementName)
TLcdXMLSchemaElementIdentifier
representing the specified XML global schema element.aGlobalElementName
- a global element nameTLcdXMLSchemaElementIdentifier
representing the specified XML schema element.NullPointerException
- if aGlobalElementName
is null
.public boolean isGlobal()
true
if this identifier represents a global element, false
otherwise.true
if this identifier represents a global element, false
otherwise.public QName[] getElementNames()
public QName getElementName()
public QName getGroupName()
null
if the
element is not defined with in a group.public QName getTypeName()
null
if this element has no enclosing global type.null
if this element has no enclosing global type.