org.apache.batik.dom
public abstract class AbstractParentNode extends AbstractNode
Nested Class Summary | |
---|---|
protected class | AbstractParentNode.ChildNodes
To manage the children of this node. |
protected class | AbstractParentNode.ElementsByTagName
To manage a list of nodes. |
protected class | AbstractParentNode.ElementsByTagNameNS
To manage a list of nodes. |
Field Summary | |
---|---|
protected AbstractParentNode.ChildNodes | childNodes
The children. |
Method Summary | |
---|---|
Node | appendChild(Node newChild)
DOM: Implements org.w3c.dom.Node#appendChild(Node). |
protected void | checkAndRemove(Node n, boolean replace)
Checks the validity of a node to be inserted, and removes it from
the document if needed. |
protected Node | deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
protected Node | deepExport(Node n, AbstractDocument d)
Deeply exports this node to the given document. |
protected void | fireDOMNodeInsertedEvent(Node node)
Fires a DOMNodeInserted event. |
void | fireDOMNodeInsertedIntoDocumentEvent()
Recursively fires a DOMNodeInsertedIntoDocument event. |
protected void | fireDOMNodeRemovedEvent(Node node)
Fires a DOMNodeRemoved event. |
void | fireDOMNodeRemovedFromDocumentEvent()
Recursively fires a DOMNodeRemovedFromDocument event. |
protected void | fireDOMSubtreeModifiedEvent()
Fires a DOMSubtreeModified event. |
NodeList | getChildNodes()
DOM: Implements org.w3c.dom.Node#getChildNodes(). |
NodeList | getElementsByTagName(String name)
DOM: Implements org.w3c.dom.Element#getElementsByTagName(String). |
NodeList | getElementsByTagNameNS(String namespaceURI, String localName)
DOM: Implements org.w3c.dom.Element#getElementsByTagNameNS(String,String). |
Node | getFirstChild()
DOM: Implements org.w3c.dom.Node#getFirstChild(). |
Node | getLastChild()
DOM: Implements org.w3c.dom.Node#getLastChild(). |
String | getTextContent()
DOM: Implements org.w3c.dom.Node#getTextContent(). |
boolean | hasChildNodes()
DOM: Implements org.w3c.dom.Node#hasChildNodes(). |
Node | insertBefore(Node newChild, Node refChild)
DOM: Implements org.w3c.dom.Node#insertBefore(Node, Node). |
protected void | nodeAdded(Node n)
Called when a child node has been added. |
protected void | nodeToBeRemoved(Node n)
Called when a child node is going to be removed. |
void | normalize()
DOM: Implements org.w3c.dom.Node#normalize(). |
Node | removeChild(Node oldChild)
DOM: Implements org.w3c.dom.Node#removeChild(Node). |
Node | replaceChild(Node newChild, Node oldChild)
DOM: Implements org.w3c.dom.Node#replaceChild(Node, Node). |
Parameters: n a node of the type of this.
Returns: childNodes
Returns: childNodes.firstChild
Returns: childNodes.lastChild
Returns: true if this node has children, false otherwise.