Save This Page
Home » openjdk-7 » com.sun.org.apache.xerces.internal » dom » [javadoc | source]
com.sun.org.apache.xerces.internal.dom
public class: AttrNSImpl [javadoc | source]
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

All Implemented Interfaces:
    TypeInfo, Attr, Cloneable, Node, EventTarget, Serializable, NodeList

Direct Known Subclasses:
    DeferredAttrNSImpl, PSVIAttrNSImpl

AttrNSImpl inherits from AttrImpl and adds namespace support.

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.

Field Summary
static final  long serialVersionUID    Serialization version. 
static final  String xmlnsURI     
static final  String xmlURI     
protected  String namespaceURI    DOM2: Namespace URI. 
protected  String localName    DOM2: localName. 
Fields inherited from com.sun.org.apache.xerces.internal.dom.AttrImpl:
serialVersionUID,  DTD_URI,  value,  name,  type,  textNode
Fields inherited from com.sun.org.apache.xerces.internal.dom.NodeImpl:
TREE_POSITION_PRECEDING,  TREE_POSITION_FOLLOWING,  TREE_POSITION_ANCESTOR,  TREE_POSITION_DESCENDANT,  TREE_POSITION_EQUIVALENT,  TREE_POSITION_SAME_NODE,  TREE_POSITION_DISCONNECTED,  DOCUMENT_POSITION_DISCONNECTED,  DOCUMENT_POSITION_PRECEDING,  DOCUMENT_POSITION_FOLLOWING,  DOCUMENT_POSITION_CONTAINS,  DOCUMENT_POSITION_IS_CONTAINED,  DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,  serialVersionUID,  ELEMENT_DEFINITION_NODE,  ownerNode,  flags,  READONLY,  SYNCDATA,  SYNCCHILDREN,  OWNED,  FIRSTCHILD,  SPECIFIED,  IGNORABLEWS,  HASSTRING,  NORMALIZED,  ID
Constructor:
 public AttrNSImpl() 
 protected AttrNSImpl(CoreDocumentImpl ownerDocument,
    String value) 
 protected AttrNSImpl(CoreDocumentImpl ownerDocument,
    String namespaceURI,
    String qualifiedName) 
    DOM2: Constructor for Namespace implementation.
 public AttrNSImpl(CoreDocumentImpl ownerDocument,
    String namespaceURI,
    String qualifiedName,
    String localName) 
Method from com.sun.org.apache.xerces.internal.dom.AttrNSImpl Summary:
getLocalName,   getNamespaceURI,   getPrefix,   getTypeName,   getTypeNamespace,   isDerivedFrom,   rename,   setPrefix,   setValues
Methods from com.sun.org.apache.xerces.internal.dom.AttrImpl:
checkNormalizationAfterInsert,   checkNormalizationAfterRemove,   cloneNode,   getChildNodes,   getElement,   getFirstChild,   getLastChild,   getLength,   getName,   getNodeName,   getNodeType,   getNodeValue,   getOwnerElement,   getSchemaTypeInfo,   getSpecified,   getTypeName,   getTypeNamespace,   getValue,   hasChildNodes,   insertBefore,   internalInsertBefore,   internalRemoveChild,   isDerivedFrom,   isEqualNode,   isId,   item,   lastChild,   lastChild,   makeChildNode,   normalize,   removeChild,   rename,   replaceChild,   setIdAttribute,   setNodeValue,   setOwnerDocument,   setReadOnly,   setSpecified,   setType,   setValue,   synchronizeChildren,   toString
Methods from com.sun.org.apache.xerces.internal.dom.NodeImpl:
addEventListener,   appendChild,   changed,   changes,   cloneNode,   compareDocumentPosition,   compareTreePosition,   dispatchEvent,   getAttributes,   getBaseURI,   getChildNodes,   getContainer,   getElementAncestor,   getFeature,   getFirstChild,   getLastChild,   getLength,   getLocalName,   getNamespaceURI,   getNextSibling,   getNodeName,   getNodeNumber,   getNodeType,   getNodeValue,   getOwnerDocument,   getParentNode,   getPrefix,   getPreviousSibling,   getReadOnly,   getTextContent,   getTextContent,   getUserData,   getUserData,   getUserDataRecord,   hasAttributes,   hasChildNodes,   hasStringValue,   hasStringValue,   insertBefore,   internalIsIgnorableWhitespace,   isDefaultNamespace,   isEqualNode,   isFirstChild,   isFirstChild,   isIdAttribute,   isIdAttribute,   isIgnorableWhitespace,   isNormalized,   isNormalized,   isOwned,   isOwned,   isReadOnly,   isReadOnly,   isSameNode,   isSpecified,   isSpecified,   isSupported,   item,   lookupNamespacePrefix,   lookupNamespaceURI,   lookupPrefix,   needsSyncChildren,   needsSyncChildren,   needsSyncData,   needsSyncData,   normalize,   ownerDocument,   parentNode,   previousSibling,   removeChild,   removeEventListener,   replaceChild,   setNodeValue,   setOwnerDocument,   setPrefix,   setReadOnly,   setTextContent,   setUserData,   setUserData,   synchronizeData,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.org.apache.xerces.internal.dom.AttrNSImpl Detail:
 public String getLocalName() 
    Introduced in DOM Level 2.

    Returns the local part of the qualified name of this node.

 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.

 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.

 public String getTypeName() 
 public String getTypeNamespace() 
 public boolean isDerivedFrom(String typeNamespaceArg,
    String typeNameArg,
    int derivationMethod) 
    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

  void rename(String namespaceURI,
    String qualifiedName) 
 public  void setPrefix(String prefix) throws DOMException 
    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.

 public  void setValues(CoreDocumentImpl ownerDocument,
    String namespaceURI,
    String qualifiedName,
    String localName) 
    NON-DOM: resets this node and sets specified values for the node