Class: com.sun.org.apache.xerces.internal.dom.AttrNSImpl
- public class AttrNSImpl
- extends AttrImpl
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.
Inheritance
Superclass tree:- java.lang.Object
- com.sun.org.apache.xerces.internal.dom.NodeImpl
- com.sun.org.apache.xerces.internal.dom.AttrImpl
- com.sun.org.apache.xerces.internal.dom.AttrNSImpl
Methods
-
AttrNSImpltop
public AttrNSImpl() -
AttrNSImpltop
protected AttrNSImpl(CoreDocumentImpl ownerDocument, String value) -
AttrNSImpltop
DOM2: Constructor for Namespace implementation. -
AttrNSImpltop
public AttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName) -
getLocalNametop
public String getLocalName()Introduced in DOM Level 2.Returns the local part of the qualified name of this node.
- Specified by:
- getLocalName from Node
- Override hierarchy:
- getLocalName from NodeImpl
-
getNamespaceURItop
public String getNamespaceURI()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.
- Specified by:
- getNamespaceURI from Node
- Override hierarchy:
- getNamespaceURI from NodeImpl
-
getPrefixtop
public String getPrefix()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.
-
getTypeNametop
public String getTypeName()The name of a type declared for the associated element or attribute, ornullif unknown.- Specified by:
- getTypeName from TypeInfo
- Override hierarchy:
- getTypeName from AttrImpl
-
getTypeNamespacetop
public String getTypeNamespace()The namespace of the type declared for the associated element or attribute ornullif the element does not have declaration or if no namespace information is available.- Specified by:
- getTypeNamespace from TypeInfo
- Override hierarchy:
- getTypeNamespace from AttrImpl
-
isDerivedFromtop
Introduced in DOM Level 3.Checks if a type is derived from another by restriction. See: http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-isDerivedFrom
- Specified by:
- isDerivedFrom from TypeInfo
- Override hierarchy:
- isDerivedFrom from AttrImpl
-
renametop
-
setNametop
-
setPrefixtop
public void setPrefix(String prefix) throws DOMExceptionIntroduced 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.
-
setValuestop
public void setValues(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName)NON-DOM: resets this node and sets specified values for the node
Fields
-
localName
protected String localNameDOM2: localName. -
namespaceURI
protected String namespaceURIDOM2: Namespace URI. -
serialVersionUID
static final long serialVersionUID = -781906615369795414Serialization version. -
xmlURI
static final String xmlURI = "http://www.w3.org/XML/1998/namespace" -
xmlnsURI
static final String xmlnsURI = "http://www.w3.org/2000/xmlns/"
