public class TLcdXMLSchemaElementIdentifier
extends java.lang.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(java.lang.Object obj) |
javax.xml.namespace.QName |
getElementName()
Returns the actual element name of this element identifier.
|
javax.xml.namespace.QName[] |
getElementNames()
Returns the element name stack of this XML schema element identifier.
|
javax.xml.namespace.QName |
getGroupName()
Returns the name of the model group in which this element is defined.
|
javax.xml.namespace.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(javax.xml.namespace.QName aGlobalElementName)
Returns an instance of a
TLcdXMLSchemaElementIdentifier representing the specified XML global schema element. |
static TLcdXMLSchemaElementIdentifier |
newInstance(javax.xml.namespace.QName aTypeName,
javax.xml.namespace.QName[] aElementNames)
Returns an instance of a
TLcdXMLSchemaElementIdentifier representing the specified XML schema element. |
static TLcdXMLSchemaElementIdentifier |
newInstance(javax.xml.namespace.QName aTypeName,
javax.xml.namespace.QName aGroupName,
javax.xml.namespace.QName[] aElementNames)
Returns an instance of a
TLcdXMLSchemaElementIdentifier representing the specified XML schema element. |
java.lang.String |
toString() |
public static TLcdXMLSchemaElementIdentifier newInstance(javax.xml.namespace.QName aTypeName, javax.xml.namespace.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.java.lang.NullPointerException
- if aElementNames
is null
.public static TLcdXMLSchemaElementIdentifier newInstance(javax.xml.namespace.QName aTypeName, javax.xml.namespace.QName aGroupName, javax.xml.namespace.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.java.lang.NullPointerException
- if aElementNames
is null
.public static TLcdXMLSchemaElementIdentifier newGlobalElementInstance(javax.xml.namespace.QName aGlobalElementName)
TLcdXMLSchemaElementIdentifier
representing the specified XML global schema element.aGlobalElementName
- a global element nameTLcdXMLSchemaElementIdentifier
representing the specified XML schema element.java.lang.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 javax.xml.namespace.QName[] getElementNames()
public javax.xml.namespace.QName getElementName()
public javax.xml.namespace.QName getGroupName()
null
if the
element is not defined with in a group.public javax.xml.namespace.QName getTypeName()
null
if this element has no enclosing global type.null
if this element has no enclosing global type.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object