java.lang.Object
org.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
- All Implemented Interfaces:
- org.w3c.dom.events.EventTarget, ExtendedNode, org.w3c.dom.Node, org.apache.batik.dom.events.NodeEventTarget, java.io.Serializable
- Direct Known Subclasses:
- AbstractAttr, AbstractDocument, AbstractDocumentFragment, AbstractEntity, AbstractParentChildNode
- public abstract class AbstractParentNode
- extends AbstractNode
This class implements the Node interface with support for children.
- Version:
- $Id: AbstractParentNode.java,v 1.27 2005/03/18 00:38:12 deweese Exp $
| 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 |
|
Method Summary |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
DOM: Implements Node.appendChild(Node)>Node.appendChild(Node) 55 . |
protected void |
checkAndRemove(org.w3c.dom.Node n,
boolean replace)
Checks the validity of a node to be inserted, and removes it from
the document if needed. |
protected org.w3c.dom.Node |
deepCopyInto(org.w3c.dom.Node n)
Deeply copy the fields of the current node into the given node. |
protected org.w3c.dom.Node |
deepExport(org.w3c.dom.Node n,
AbstractDocument d)
Deeply exports this node to the given document. |
protected void |
fireDOMNodeInsertedEvent(org.w3c.dom.Node node)
Fires a DOMNodeInserted event. |
void |
fireDOMNodeInsertedIntoDocumentEvent()
Recursively fires a DOMNodeInsertedIntoDocument event. |
protected void |
fireDOMNodeRemovedEvent(org.w3c.dom.Node node)
Fires a DOMNodeRemoved event. |
void |
fireDOMNodeRemovedFromDocumentEvent()
Recursively fires a DOMNodeRemovedFromDocument event. |
protected void |
fireDOMSubtreeModifiedEvent()
Fires a DOMSubtreeModified event. |
org.w3c.dom.NodeList |
getChildNodes()
DOM: Implements Node.getChildNodes()>Node.getChildNodes() 55 . |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
DOM: Implements Element.getElementsByTagName(String)>Element.getElementsByTagName(String) 55 . |
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements Element.getElementsByTagNameNS(String,String)>Element.getElementsByTagNameNS(String,String) 55 . |
org.w3c.dom.Node |
getFirstChild()
DOM: Implements Node.getFirstChild()>Node.getFirstChild() 55 . |
org.w3c.dom.Node |
getLastChild()
DOM: Implements Node.getLastChild()>Node.getLastChild() 55 . |
boolean |
hasChildNodes()
DOM: Implements Node.hasChildNodes()>Node.hasChildNodes() 55 . |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
DOM: Implements Node.insertBefore(Node, Node)>Node.insertBefore(Node, Node) 55 . |
protected void |
nodeAdded(org.w3c.dom.Node n)
Called when a child node has been added. |
protected void |
nodeToBeRemoved(org.w3c.dom.Node n)
Called when a child node is going to be removed. |
void |
normalize()
DOM: Implements Node.normalize()>Node.normalize() 55 . |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
DOM: Implements Node.removeChild(Node)>Node.removeChild(Node) 55 . |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
DOM: Implements Node.replaceChild(Node, Node)>Node.replaceChild(Node, Node) 55 . |
| Methods inherited from class org.apache.batik.dom.AbstractNode |
addEventListener, checkChildType, cloneNode, copyInto, createDOMException, dispatchEvent, export, fireDOMCharacterDataModifiedEvent, getAttributes, getCurrentDocument, getEventSupport, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getParentNodeEventTarget, getPrefix, getPreviousSibling, hasAttributes, isSupported, newNode, removeEventListener, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setSpecified |
| 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 |
compareDocumentPosition, getBaseURI, getFeature, getNodeName, getNodeType, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
childNodes
protected AbstractParentNode.ChildNodes childNodes
- The children.
AbstractParentNode
public AbstractParentNode()
getChildNodes
public org.w3c.dom.NodeList getChildNodes()
- DOM: Implements Node.getChildNodes()>
Node.getChildNodes() 55 .
- Specified by:
getChildNodes in interface org.w3c.dom.Node- Overrides:
getChildNodes in class AbstractNode
getFirstChild
public org.w3c.dom.Node getFirstChild()
- DOM: Implements Node.getFirstChild()>
Node.getFirstChild() 55 .
- Specified by:
getFirstChild in interface org.w3c.dom.Node- Overrides:
getFirstChild in class AbstractNode
getLastChild
public org.w3c.dom.Node getLastChild()
- DOM: Implements Node.getLastChild()>
Node.getLastChild() 55 .
- Specified by:
getLastChild in interface org.w3c.dom.Node- Overrides:
getLastChild in class AbstractNode
insertBefore
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
- DOM: Implements Node.insertBefore(Node, Node)>
Node.insertBefore(Node, Node) 55 .
- Specified by:
insertBefore in interface org.w3c.dom.Node- Overrides:
insertBefore in class AbstractNode
replaceChild
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
- DOM: Implements Node.replaceChild(Node, Node)>
Node.replaceChild(Node, Node) 55 .
- Specified by:
replaceChild in interface org.w3c.dom.Node- Overrides:
replaceChild in class AbstractNode
removeChild
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
- DOM: Implements Node.removeChild(Node)>
Node.removeChild(Node) 55 .
- Specified by:
removeChild in interface org.w3c.dom.Node- Overrides:
removeChild in class AbstractNode
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
- DOM: Implements Node.appendChild(Node)>
Node.appendChild(Node) 55 .
- Specified by:
appendChild in interface org.w3c.dom.Node- Overrides:
appendChild in class AbstractNode
hasChildNodes
public boolean hasChildNodes()
- DOM: Implements Node.hasChildNodes()>
Node.hasChildNodes() 55 .
- Specified by:
hasChildNodes in interface org.w3c.dom.Node- Overrides:
hasChildNodes in class AbstractNode
normalize
public void normalize()
- DOM: Implements Node.normalize()>
Node.normalize() 55 .
- Specified by:
normalize in interface org.w3c.dom.Node- Overrides:
normalize in class AbstractNode
getElementsByTagName
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
- DOM: Implements Element.getElementsByTagName(String)>
Element.getElementsByTagName(String) 55 .
getElementsByTagNameNS
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
- DOM: Implements Element.getElementsByTagNameNS(String,String)>
Element.getElementsByTagNameNS(String,String) 55 .
fireDOMNodeInsertedIntoDocumentEvent
public void fireDOMNodeInsertedIntoDocumentEvent()
- Recursively fires a DOMNodeInsertedIntoDocument event.
- Overrides:
fireDOMNodeInsertedIntoDocumentEvent in class AbstractNode
fireDOMNodeRemovedFromDocumentEvent
public void fireDOMNodeRemovedFromDocumentEvent()
- Recursively fires a DOMNodeRemovedFromDocument event.
- Overrides:
fireDOMNodeRemovedFromDocumentEvent in class AbstractNode
nodeAdded
protected void nodeAdded(org.w3c.dom.Node n)
- Called when a child node has been added.
nodeToBeRemoved
protected void nodeToBeRemoved(org.w3c.dom.Node n)
- Called when a child node is going to be removed.
deepExport
protected org.w3c.dom.Node deepExport(org.w3c.dom.Node n,
AbstractDocument d)
- Deeply exports this node to the given document.
- Overrides:
deepExport in class AbstractNode
deepCopyInto
protected org.w3c.dom.Node deepCopyInto(org.w3c.dom.Node n)
- Deeply copy the fields of the current node into the given node.
- Overrides:
deepCopyInto in class AbstractNode
fireDOMSubtreeModifiedEvent
protected void fireDOMSubtreeModifiedEvent()
- Fires a DOMSubtreeModified event.
fireDOMNodeInsertedEvent
protected void fireDOMNodeInsertedEvent(org.w3c.dom.Node node)
- Fires a DOMNodeInserted event.
fireDOMNodeRemovedEvent
protected void fireDOMNodeRemovedEvent(org.w3c.dom.Node node)
- Fires a DOMNodeRemoved event.
checkAndRemove
protected void checkAndRemove(org.w3c.dom.Node n,
boolean replace)
- Checks the validity of a node to be inserted, and removes it from
the document if needed.