com.ibm.di.entry
Class NodeImpl

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

public abstract class NodeImpl
extends Object
implements Node, 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
 Node appendChild(Node newChild)
          This private variable holds a reference to the document of this element.
 short compareDocumentPosition(Node other)
          Does nothing!
 NamedNodeMap getAttributes()
           
 String getBaseURI()
          Does Nothing!
 NodeList getChildNodes()
           
 Object getFeature(String feature, String version)
          Does Nothing!
 Node getFirstChild()
           
 Node getLastChild()
           
 Node getNextSibling()
           
 String getNodeName()
           
 Document getOwnerDocument()
           
 Attribute getParentNode()
           
 Node getPreviousSibling()
           
 String getTextContent()
           
 Object getUserData(String key)
          Does nothing!
 boolean hasAttributes()
           
 boolean hasChildNodes()
           
 Node insertBefore(Node newChild, Node refChild)
           
protected  String internalLookupPrefix(String namespaceURI)
           
protected  String internalNSLookup(String prefix)
           
 boolean isDefaultNamespace(String namespaceURI)
           
 boolean isEqualNode(Node other)
           
 boolean isSameNode(Node other)
           
 boolean isSupported(String feature, String version)
          Does nothing!
 String lookupNamespaceURI(String prefix)
           
 String lookupPrefix(String namespaceURI)
           
 void normalize()
          Not Supported!
 Node removeChild(Node oldChild)
           
 Node replaceChild(Node newChild, Node oldChild)
           
 void setTextContent(String textContent)
           
 Object setUserData(String key, Object data, 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 Node appendChild(Node newChild)
                 throws DOMException
This private variable holds a reference to the document of this element.

Specified by:
appendChild in interface Node
Throws:
DOMException

compareDocumentPosition

public short compareDocumentPosition(Node other)
                              throws DOMException
Does nothing!

Specified by:
compareDocumentPosition in interface Node
Parameters:
other -
Returns:
0
Throws:
DOMException - - never

getAttributes

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

getBaseURI

public String getBaseURI()
Does Nothing!

Specified by:
getBaseURI in interface Node
Returns:
null;

getFeature

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

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

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node

getOwnerDocument

public Document getOwnerDocument()
Specified by:
getOwnerDocument in interface Node

getParentNode

public Attribute getParentNode()
Specified by:
getParentNode in interface Node

getTextContent

public String getTextContent()
                      throws DOMException
Specified by:
getTextContent in interface Node
Throws:
DOMException

getUserData

public Object getUserData(String key)
Does nothing!

Specified by:
getUserData in interface Node
Parameters:
key -
Returns:
null

hasAttributes

public boolean hasAttributes()
Specified by:
hasAttributes in interface Node

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface Node

insertBefore

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

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)
Specified by:
isDefaultNamespace in interface Node

internalNSLookup

protected String internalNSLookup(String prefix)

isEqualNode

public boolean isEqualNode(Node other)
Specified by:
isEqualNode in interface Node

isSameNode

public boolean isSameNode(Node other)
Specified by:
isSameNode in interface Node

isSupported

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

Specified by:
isSupported in interface Node
Parameters:
feature -
version -
Returns:
false

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)
Specified by:
lookupNamespaceURI in interface Node

lookupPrefix

public String lookupPrefix(String namespaceURI)
Specified by:
lookupPrefix in interface Node

internalLookupPrefix

protected String internalLookupPrefix(String namespaceURI)

normalize

public void normalize()
Not Supported!

Specified by:
normalize in interface Node

removeChild

public Node removeChild(Node oldChild)
                 throws DOMException
Specified by:
removeChild in interface Node
Throws:
DOMException

replaceChild

public Node replaceChild(Node newChild,
                         Node oldChild)
Specified by:
replaceChild in interface Node

setTextContent

public void setTextContent(String textContent)
Specified by:
setTextContent in interface Node

setUserData

public Object setUserData(String key,
                          Object data,
                          UserDataHandler handler)
Does nothing!

Specified by:
setUserData in interface Node
Parameters:
key -
data -
handler -
Returns:
null

getChildNodes

public NodeList getChildNodes()
Specified by:
getChildNodes in interface Node

getFirstChild

public Node getFirstChild()
Specified by:
getFirstChild in interface Node

getLastChild

public Node getLastChild()
Specified by:
getLastChild in interface Node

getNextSibling

public Node getNextSibling()
Specified by:
getNextSibling in interface Node

getPreviousSibling

public Node getPreviousSibling()
Specified by:
getPreviousSibling in interface Node