Package com.ibm.di.entry
Class NodeImpl
- java.lang.Object
-
- 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.SerializableBasic implementation of theNodeinterface. Each descendant, except for those that implement theDocumentinterface, should follow the general contract:- doc = null
- parent = null -> the Node has neither a parent nor a Document. This might be a brand new Node not yet attached to an Element.
- parent != null -> the Node has a parent but its parent or the top-most parent is not attached to a Document.
- doc != null
- parent = null -> this is an Element node attached directly to the Document
- parent != null -> this is a node which up the hierarchy has a parent attached to a Document
- Since:
- 7.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeparentThis 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
Constructors Constructor Description NodeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodeappendChild(org.w3c.dom.Node newChild)This private variable holds a reference to the document of this element.shortcompareDocumentPosition(org.w3c.dom.Node other)Does nothing!org.w3c.dom.NamedNodeMapgetAttributes()java.lang.StringgetBaseURI()Does Nothing!org.w3c.dom.NodeListgetChildNodes()java.lang.ObjectgetFeature(java.lang.String feature, java.lang.String version)Does Nothing!org.w3c.dom.NodegetFirstChild()org.w3c.dom.NodegetLastChild()org.w3c.dom.NodegetNextSibling()java.lang.StringgetNodeName()org.w3c.dom.DocumentgetOwnerDocument()AttributegetParentNode()org.w3c.dom.NodegetPreviousSibling()java.lang.StringgetTextContent()java.lang.ObjectgetUserData(java.lang.String key)Does nothing!booleanhasAttributes()booleanhasChildNodes()org.w3c.dom.NodeinsertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)protected java.lang.StringinternalLookupPrefix(java.lang.String namespaceURI)protected java.lang.StringinternalNSLookup(java.lang.String prefix)booleanisDefaultNamespace(java.lang.String namespaceURI)booleanisEqualNode(org.w3c.dom.Node other)booleanisSameNode(org.w3c.dom.Node other)booleanisSupported(java.lang.String feature, java.lang.String version)Does nothing!java.lang.StringlookupNamespaceURI(java.lang.String prefix)java.lang.StringlookupPrefix(java.lang.String namespaceURI)voidnormalize()Not Supported!org.w3c.dom.NoderemoveChild(org.w3c.dom.Node oldChild)org.w3c.dom.NodereplaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)voidsetTextContent(java.lang.String textContent)java.lang.ObjectsetUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)Does nothing!
-
-
-
Field Detail
-
parent
protected transient Attribute parent
This private variable holds a reference to the parent of this element.
-
-
Method Detail
-
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws DOMExceptionThis private variable holds a reference to the document of this element.- Specified by:
appendChildin interfaceorg.w3c.dom.Node- Throws:
DOMException
-
compareDocumentPosition
public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMExceptionDoes nothing!- Specified by:
compareDocumentPositionin interfaceorg.w3c.dom.Node- Parameters:
other-- Returns:
- 0
- Throws:
DOMException- - never
-
getAttributes
public org.w3c.dom.NamedNodeMap getAttributes()
- Specified by:
getAttributesin interfaceorg.w3c.dom.Node- Returns:
- PropertyMap object, that contains all the properties of this Attribute.
-
getBaseURI
public java.lang.String getBaseURI()
Does Nothing!- Specified by:
getBaseURIin interfaceorg.w3c.dom.Node- Returns:
- null;
-
getFeature
public java.lang.Object getFeature(java.lang.String feature, java.lang.String version)Does Nothing!- Specified by:
getFeaturein interfaceorg.w3c.dom.Node- Parameters:
version-feature-- Returns:
- Boolean.FALSE
-
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeNamein interfaceorg.w3c.dom.Node
-
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()
- Specified by:
getOwnerDocumentin interfaceorg.w3c.dom.Node
-
getParentNode
public Attribute getParentNode()
- Specified by:
getParentNodein interfaceorg.w3c.dom.Node
-
getTextContent
public java.lang.String getTextContent() throws DOMException- Specified by:
getTextContentin interfaceorg.w3c.dom.Node- Throws:
DOMException
-
getUserData
public java.lang.Object getUserData(java.lang.String key)
Does nothing!- Specified by:
getUserDatain interfaceorg.w3c.dom.Node- Parameters:
key-- Returns:
- null
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributesin interfaceorg.w3c.dom.Node
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodesin interfaceorg.w3c.dom.Node
-
insertBefore
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws DOMException- Specified by:
insertBeforein interfaceorg.w3c.dom.Node- Throws:
DOMException
-
isDefaultNamespace
public boolean isDefaultNamespace(java.lang.String namespaceURI)
- Specified by:
isDefaultNamespacein interfaceorg.w3c.dom.Node
-
internalNSLookup
protected java.lang.String internalNSLookup(java.lang.String prefix)
-
isEqualNode
public boolean isEqualNode(org.w3c.dom.Node other)
- Specified by:
isEqualNodein interfaceorg.w3c.dom.Node
-
isSameNode
public boolean isSameNode(org.w3c.dom.Node other)
- Specified by:
isSameNodein interfaceorg.w3c.dom.Node
-
isSupported
public boolean isSupported(java.lang.String feature, java.lang.String version)Does nothing!- Specified by:
isSupportedin interfaceorg.w3c.dom.Node- Parameters:
feature-version-- Returns:
- false
-
lookupNamespaceURI
public java.lang.String lookupNamespaceURI(java.lang.String prefix)
- Specified by:
lookupNamespaceURIin interfaceorg.w3c.dom.Node
-
lookupPrefix
public java.lang.String lookupPrefix(java.lang.String namespaceURI)
- Specified by:
lookupPrefixin interfaceorg.w3c.dom.Node
-
internalLookupPrefix
protected java.lang.String internalLookupPrefix(java.lang.String namespaceURI)
-
normalize
public void normalize()
Not Supported!- Specified by:
normalizein interfaceorg.w3c.dom.Node
-
removeChild
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws DOMException- Specified by:
removeChildin interfaceorg.w3c.dom.Node- Throws:
DOMException
-
replaceChild
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)- Specified by:
replaceChildin interfaceorg.w3c.dom.Node
-
setTextContent
public void setTextContent(java.lang.String textContent)
- Specified by:
setTextContentin interfaceorg.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:
setUserDatain interfaceorg.w3c.dom.Node- Parameters:
key-data-handler-- Returns:
- null
-
getChildNodes
public org.w3c.dom.NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceorg.w3c.dom.Node
-
getFirstChild
public org.w3c.dom.Node getFirstChild()
- Specified by:
getFirstChildin interfaceorg.w3c.dom.Node
-
getLastChild
public org.w3c.dom.Node getLastChild()
- Specified by:
getLastChildin interfaceorg.w3c.dom.Node
-
getNextSibling
public org.w3c.dom.Node getNextSibling()
- Specified by:
getNextSiblingin interfaceorg.w3c.dom.Node
-
getPreviousSibling
public org.w3c.dom.Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceorg.w3c.dom.Node
-
-