com.ibm.di.entry
Class NodeImpl

java.lang.Object
  extended by com.ibm.di.entry.NodeImpl
All Implemented Interfaces:
java.io.Serializable, org.w3c.dom.Node
Direct Known Subclasses:
Attribute, CharacterDataImpl, Property

public abstract class NodeImpl
extends java.lang.Object
implements org.w3c.dom.Node, java.io.Serializable

Basic implementation of the Node interface. Each descendant, except for those that implement the Document interface, should follow the general contract:

Since:
7.0
See Also:
Serialized Form

Field Summary
protected  Attribute parent
          This private variable holds a reference to the parent of this element.
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
NodeImpl()
           
 
Method Summary
 org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
          This private variable holds a reference to the document of this element.
 short compareDocumentPosition(org.w3c.dom.Node other)
          Does nothing!
 org.w3c.dom.NamedNodeMap getAttributes()
           
 java.lang.String getBaseURI()
          Does Nothing!
 org.w3c.dom.NodeList getChildNodes()
           
 java.lang.Object getFeature(java.lang.String feature, java.lang.String version)
          Does Nothing!
 org.w3c.dom.Node getFirstChild()
           
 org.w3c.dom.Node getLastChild()
           
 org.w3c.dom.Node getNextSibling()
           
 java.lang.String getNodeName()
           
 org.w3c.dom.Document getOwnerDocument()
           
 Attribute getParentNode()
           
 org.w3c.dom.Node getPreviousSibling()
           
 java.lang.String getTextContent()
           
 java.lang.Object getUserData(java.lang.String key)
          Does nothing!
 boolean hasAttributes()
           
 boolean hasChildNodes()
           
 org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
           
protected  java.lang.String internalLookupPrefix(java.lang.String namespaceURI)
           
protected  java.lang.String internalNSLookup(java.lang.String prefix)
           
 boolean isDefaultNamespace(java.lang.String namespaceURI)
           
 boolean isEqualNode(org.w3c.dom.Node other)
           
 boolean isSameNode(org.w3c.dom.Node other)
           
 boolean isSupported(java.lang.String feature, java.lang.String version)
          Does nothing!
 java.lang.String lookupNamespaceURI(java.lang.String prefix)
           
 java.lang.String lookupPrefix(java.lang.String namespaceURI)
           
 void normalize()
          Not Supported!
 org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
           
 org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)
           
 void setTextContent(java.lang.String textContent)
           
 java.lang.Object setUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)
          Does nothing!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
cloneNode, getLocalName, getNamespaceURI, getNodeType, getNodeValue, getPrefix, setNodeValue, setPrefix
 

Field Detail

parent

protected transient Attribute parent
This private variable holds a reference to the parent of this element.

Constructor Detail

NodeImpl

public NodeImpl()
Method Detail

appendChild

public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
                             throws DOMException
This private variable holds a reference to the document of this element.

Specified by:
appendChild in interface org.w3c.dom.Node
Throws:
DOMException

compareDocumentPosition

public short compareDocumentPosition(org.w3c.dom.Node other)
                              throws DOMException
Does nothing!

Specified by:
compareDocumentPosition in interface org.w3c.dom.Node
Parameters:
other -
Returns:
0
Throws:
DOMException - - never

getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
Specified by:
getAttributes in interface org.w3c.dom.Node
Returns:
PropertyMap object, that contains all the properties of this Attribute.

getBaseURI

public java.lang.String getBaseURI()
Does Nothing!

Specified by:
getBaseURI in interface org.w3c.dom.Node
Returns:
null;

getFeature

public java.lang.Object getFeature(java.lang.String feature,
                                   java.lang.String version)
Does Nothing!

Specified by:
getFeature in interface org.w3c.dom.Node
Parameters:
version -
feature -
Returns:
Boolean.FALSE

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node

getOwnerDocument

public org.w3c.dom.Document getOwnerDocument()
Specified by:
getOwnerDocument in interface org.w3c.dom.Node

getParentNode

public Attribute getParentNode()
Specified by:
getParentNode in interface org.w3c.dom.Node

getTextContent

public java.lang.String getTextContent()
                                throws DOMException
Specified by:
getTextContent in interface org.w3c.dom.Node
Throws:
DOMException

getUserData

public java.lang.Object getUserData(java.lang.String key)
Does nothing!

Specified by:
getUserData in interface org.w3c.dom.Node
Parameters:
key -
Returns:
null

hasAttributes

public boolean hasAttributes()
Specified by:
hasAttributes in interface org.w3c.dom.Node

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface org.w3c.dom.Node

insertBefore

public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node refChild)
                              throws DOMException
Specified by:
insertBefore in interface org.w3c.dom.Node
Throws:
DOMException

isDefaultNamespace

public boolean isDefaultNamespace(java.lang.String namespaceURI)
Specified by:
isDefaultNamespace in interface org.w3c.dom.Node

internalNSLookup

protected java.lang.String internalNSLookup(java.lang.String prefix)

isEqualNode

public boolean isEqualNode(org.w3c.dom.Node other)
Specified by:
isEqualNode in interface org.w3c.dom.Node

isSameNode

public boolean isSameNode(org.w3c.dom.Node other)
Specified by:
isSameNode in interface org.w3c.dom.Node

isSupported

public boolean isSupported(java.lang.String feature,
                           java.lang.String version)
Does nothing!

Specified by:
isSupported in interface org.w3c.dom.Node
Parameters:
feature -
version -
Returns:
false

lookupNamespaceURI

public java.lang.String lookupNamespaceURI(java.lang.String prefix)
Specified by:
lookupNamespaceURI in interface org.w3c.dom.Node

lookupPrefix

public java.lang.String lookupPrefix(java.lang.String namespaceURI)
Specified by:
lookupPrefix in interface org.w3c.dom.Node

internalLookupPrefix

protected java.lang.String internalLookupPrefix(java.lang.String namespaceURI)

normalize

public void normalize()
Not Supported!

Specified by:
normalize in interface org.w3c.dom.Node

removeChild

public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
                             throws DOMException
Specified by:
removeChild in interface org.w3c.dom.Node
Throws:
DOMException

replaceChild

public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node oldChild)
Specified by:
replaceChild in interface org.w3c.dom.Node

setTextContent

public void setTextContent(java.lang.String textContent)
Specified by:
setTextContent in interface org.w3c.dom.Node

setUserData

public java.lang.Object setUserData(java.lang.String key,
                                    java.lang.Object data,
                                    org.w3c.dom.UserDataHandler handler)
Does nothing!

Specified by:
setUserData in interface org.w3c.dom.Node
Parameters:
key -
data -
handler -
Returns:
null

getChildNodes

public org.w3c.dom.NodeList getChildNodes()
Specified by:
getChildNodes in interface org.w3c.dom.Node

getFirstChild

public org.w3c.dom.Node getFirstChild()
Specified by:
getFirstChild in interface org.w3c.dom.Node

getLastChild

public org.w3c.dom.Node getLastChild()
Specified by:
getLastChild in interface org.w3c.dom.Node

getNextSibling

public org.w3c.dom.Node getNextSibling()
Specified by:
getNextSibling in interface org.w3c.dom.Node

getPreviousSibling

public org.w3c.dom.Node getPreviousSibling()
Specified by:
getPreviousSibling in interface org.w3c.dom.Node