sdlip.xml.dom
Class NodeImpl
java.lang.Object
|
+--sdlip.xml.dom.NodeImpl
- Direct Known Subclasses:
- AttrImpl, CharacterDataImpl, DocumentImpl, ElementImpl
- public abstract class NodeImpl
- extends java.lang.Object
- implements org.w3c.dom.Node, org.w3c.dom.NodeList, java.lang.Cloneable
Field Summary
protected java.lang.String
name
Node name.
protected java.lang.String
value
Node value.
Constructor Summary
protected
NodeImpl(Document ownerDocument,
java.lang.String name,
java.lang.String value)
Method Summary
org.w3c.dom.Node
appendChild(org.w3c.dom.Node newChild)
org.w3c.dom.Node
getFirstChild()
The first child of this Node, or null if none.
org.w3c.dom.Node
getLastChild()
The first child of this Node, or null if none.
org.w3c.dom.Node
getNextSibling()
The next child of this node's parent, or null if none
org.w3c.dom.Node
getPreviousSibling()
The previous child of this node's parent, or null if none
org.w3c.dom.Node
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
org.w3c.dom.Node
item(int index)
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)
Methods inherited from class java.lang.Object
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait
Field Detail
name
protected java.lang.String name
- Node name.
value
protected java.lang.String value
- Node value.
ownerDocument
protected Document ownerDocument
- Owner document.
parentNode
protected NodeImpl parentNode
- Parent node.
previousSibling
protected NodeImpl previousSibling
- Previous sibling.
nextSibling
protected NodeImpl nextSibling
- Next sibling.
firstChild
protected NodeImpl firstChild
- First child.
lastChild
protected NodeImpl lastChild
- Last child.
Constructor Detail
NodeImpl
protected NodeImpl(Document ownerDocument,
java.lang.String name,
java.lang.String value)
Method Detail
getNodeName
public java.lang.String getNodeName()
- Specified by:
- getNodeName in interface org.w3c.dom.Node
setNodeValue
public void setNodeValue(java.lang.String value)
- Specified by:
- setNodeValue in interface org.w3c.dom.Node
getNodeValue
public java.lang.String getNodeValue()
- Specified by:
- getNodeValue in interface org.w3c.dom.Node
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
- Specified by:
- appendChild in interface org.w3c.dom.Node
cloneNode
public org.w3c.dom.Node cloneNode(boolean deep)
- Specified by:
- cloneNode in interface org.w3c.dom.Node
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
- getOwnerDocument in interface org.w3c.dom.Node
getParentNode
public org.w3c.dom.Node getParentNode()
- Specified by:
- getParentNode in interface org.w3c.dom.Node
getNextSibling
public org.w3c.dom.Node getNextSibling()
- The next child of this node's parent, or null if none
- Specified by:
- getNextSibling in interface org.w3c.dom.Node
getPreviousSibling
public org.w3c.dom.Node getPreviousSibling()
- The previous child of this node's parent, or null if none
- Specified by:
- getPreviousSibling in interface org.w3c.dom.Node
getAttributes
public org.w3c.dom.NamedNodeMap getAttributes()
- Specified by:
- getAttributes in interface org.w3c.dom.Node
hasChildNodes
public boolean hasChildNodes()
- Specified by:
- hasChildNodes in interface org.w3c.dom.Node
getChildNodes
public org.w3c.dom.NodeList getChildNodes()
- Specified by:
- getChildNodes in interface org.w3c.dom.Node
getFirstChild
public org.w3c.dom.Node getFirstChild()
- The first child of this Node, or null if none.
- Specified by:
- getFirstChild in interface org.w3c.dom.Node
getLastChild
public org.w3c.dom.Node getLastChild()
- The first child of this Node, or null if none.
- Specified by:
- getLastChild in interface org.w3c.dom.Node
insertBefore
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
- Specified by:
- insertBefore in interface org.w3c.dom.Node
removeChild
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
- Specified by:
- removeChild in interface org.w3c.dom.Node
replaceChild
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
- Specified by:
- replaceChild in interface org.w3c.dom.Node
getLength
public int getLength()
- Specified by:
- getLength in interface org.w3c.dom.NodeList
item
public org.w3c.dom.Node item(int index)
- Specified by:
- item in interface org.w3c.dom.NodeList
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
getNodeType
public abstract short getNodeType()
- Specified by:
- getNodeType in interface org.w3c.dom.Node