The qualified name is the node name, and we store localName which is also used in all queries. On the other hand we recompute the prefix when necessary.
Modifier and Type | Field and Description |
---|---|
protected String | localName
DOM2: localName. |
protected String | namespaceURI
DOM2: Namespace URI. |
pack-priv static final long | serialVersionUID
Hides com. |
pack-priv transient XSTypeDefinition | type
DOM3: type information |
pack-priv static final String |
Access | Constructor and Description |
---|---|
protected | |
protected | ElementNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName)
DOM2: Constructor for Namespace implementation. |
protected | ElementNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName)
|
protected |
Modifier and Type | Method and Description |
---|---|
public String | getLocalName()
Overrides com. Implements org. Introduced in DOM Level 2. |
public String | getNamespaceURI()
Overrides com. Implements org. Introduced in DOM Level 2. |
public String | getPrefix()
Overrides com. Implements org. Introduced in DOM Level 2. |
public String | getTypeName()
Overrides com. Implements org. The name of a type declared for the associated element or attribute,
or |
public String | getTypeNamespace()
Overrides com. Implements org. The namespace of the type declared for the associated element or
attribute or |
protected Attr | getXMLBaseAttribute()
Overrides com. NON-DOM Returns the xml:base attribute. |
public boolean | Returns: boolean True if the type is derived by restriciton for the reference typeThe namspace of the ancestor type declaration typeNamespaceArg, String The name of the ancestor type declaration typeNameArg, int The derivation method derivationMethod)Overrides com. Implements org. Introduced in DOM Level 2. |
pack-priv void | |
private void | |
public void | setPrefix(String
The namespace prefix of this node, or null(empty string) if it is unspecified. prefix)Overrides com. Implements org. Introduced in DOM Level 2. |
public void |
localName | back to summary |
---|---|
protected String localName DOM2: localName. |
namespaceURI | back to summary |
---|---|
protected String namespaceURI DOM2: Namespace URI. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides com. Serialization version. |
type | back to summary |
---|---|
pack-priv transient XSTypeDefinition type DOM3: type information |
xmlURI | back to summary |
---|---|
pack-priv static final String xmlURI |
ElementNSImpl | back to summary |
---|---|
protected ElementNSImpl() |
ElementNSImpl | back to summary |
---|---|
protected ElementNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName) throws DOMException DOM2: Constructor for Namespace implementation. |
ElementNSImpl | back to summary |
---|---|
protected ElementNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName) throws DOMException |
ElementNSImpl | back to summary |
---|---|
protected ElementNSImpl(CoreDocumentImpl ownerDocument, String value) |
getLocalName | back to summary |
---|---|
public String getLocalName() Overrides com. Implements org. Introduced in DOM Level 2. Returns the local part of the qualified name of this node.
|
getNamespaceURI | back to summary |
---|---|
public String getNamespaceURI() Overrides com. Implements org. Introduced in DOM Level 2. The namespace URI of this node, or null if it is unspecified. This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time. For nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is null.
|
getPrefix | back to summary |
---|---|
public String getPrefix() Overrides com. Implements org. Introduced in DOM Level 2. The namespace prefix of this node, or null if it is unspecified. For nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is null.
|
getTypeName | back to summary |
---|---|
public String getTypeName() Overrides com. Implements org. Doc from org. The name of a type declared for the associated element or attribute,
or
|
getTypeNamespace | back to summary |
---|---|
public String getTypeNamespace() Overrides com. Implements org. Doc from org. The namespace of the type declared for the associated element or
attribute or |
getXMLBaseAttribute | back to summary |
---|---|
protected Attr getXMLBaseAttribute() Overrides com. NON-DOM Returns the xml:base attribute.
|
isDerivedFrom | back to summary |
---|---|
public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) Overrides com. Implements org. Introduced in DOM Level 2. Checks if a type is derived from another by restriction. See: http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-isDerivedFrom |
rename | back to summary |
---|---|
pack-priv void rename(String namespaceURI, String qualifiedName) |
setName | back to summary |
---|---|
private void setName(String namespaceURI, String qname) |
setPrefix | back to summary |
---|---|
public void setPrefix(String prefix) throws DOMException Overrides com. Implements org. Introduced in DOM Level 2. Note that setting this attribute changes the nodeName attribute, which holds the qualified name, as well as the tagName and name attributes of the Element and Attr interfaces, when applicable.
|
setType | back to summary |
---|---|
public void setType(XSTypeDefinition type) NON-DOM: setting type used by the DOM parser
|