|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
public abstract class AbstractParentNode
This class implements the Node interface with support for children.
| 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. |
| Fields inherited from class org.apache.batik.dom.AbstractNode |
|---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
| Fields inherited from interface org.w3c.dom.Node |
|---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
|---|---|
AbstractParentNode()
|
|
| Method Summary | |
|---|---|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
DOM: Implements Node.appendChild(Node). |
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(). |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
DOM: Implements Element.getElementsByTagName(String). |
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements Element.getElementsByTagNameNS(String,String). |
org.w3c.dom.Node |
getFirstChild()
DOM: Implements Node.getFirstChild(). |
org.w3c.dom.Node |
getLastChild()
DOM: Implements Node.getLastChild(). |
java.lang.String |
getTextContent()
DOM: Implements Node.getTextContent(). |
boolean |
hasChildNodes()
DOM: Implements Node.hasChildNodes(). |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
DOM: Implements Node.insertBefore(Node, Node). |
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(). |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
DOM: Implements Node.removeChild(Node). |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
DOM: Implements Node.replaceChild(Node, Node). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.batik.dom.ExtendedNode |
|---|
isReadonly, setReadonly |
| Methods inherited from interface org.w3c.dom.Node |
|---|
getNodeName, getNodeType |
| Field Detail |
|---|
protected AbstractParentNode.ChildNodes childNodes
| Constructor Detail |
|---|
public AbstractParentNode()
| Method Detail |
|---|
public org.w3c.dom.NodeList getChildNodes()
Node.getChildNodes().
getChildNodes in interface org.w3c.dom.NodegetChildNodes in class AbstractNodechildNodespublic org.w3c.dom.Node getFirstChild()
Node.getFirstChild().
getFirstChild in interface org.w3c.dom.NodegetFirstChild in class AbstractNodechildNodes.firstChildpublic org.w3c.dom.Node getLastChild()
Node.getLastChild().
getLastChild in interface org.w3c.dom.NodegetLastChild in class AbstractNodechildNodes.lastChild
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
Node.insertBefore(Node, Node).
insertBefore in interface org.w3c.dom.NodeinsertBefore in class AbstractNodeorg.w3c.dom.DOMException
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
Node.replaceChild(Node, Node).
replaceChild in interface org.w3c.dom.NodereplaceChild in class AbstractNodeorg.w3c.dom.DOMException
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
Node.removeChild(Node).
removeChild in interface org.w3c.dom.NoderemoveChild in class AbstractNodeorg.w3c.dom.DOMException
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
Node.appendChild(Node).
appendChild in interface org.w3c.dom.NodeappendChild in class AbstractNodeorg.w3c.dom.DOMExceptionpublic boolean hasChildNodes()
Node.hasChildNodes().
hasChildNodes in interface org.w3c.dom.NodehasChildNodes in class AbstractNodepublic void normalize()
Node.normalize().
normalize in interface org.w3c.dom.Nodenormalize in class AbstractNodepublic org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
Element.getElementsByTagName(String).
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
Element.getElementsByTagNameNS(String,String).
public java.lang.String getTextContent()
Node.getTextContent().
getTextContent in interface org.w3c.dom.NodegetTextContent in class AbstractNodepublic void fireDOMNodeInsertedIntoDocumentEvent()
fireDOMNodeInsertedIntoDocumentEvent in class AbstractNodepublic void fireDOMNodeRemovedFromDocumentEvent()
fireDOMNodeRemovedFromDocumentEvent in class AbstractNodeprotected void nodeAdded(org.w3c.dom.Node n)
protected void nodeToBeRemoved(org.w3c.dom.Node n)
protected org.w3c.dom.Node deepExport(org.w3c.dom.Node n,
AbstractDocument d)
deepExport in class AbstractNodeprotected org.w3c.dom.Node deepCopyInto(org.w3c.dom.Node n)
deepCopyInto in class AbstractNoden - a node of the type of this.protected void fireDOMSubtreeModifiedEvent()
protected void fireDOMNodeInsertedEvent(org.w3c.dom.Node node)
protected void fireDOMNodeRemovedEvent(org.w3c.dom.Node node)
protected void checkAndRemove(org.w3c.dom.Node n,
boolean replace)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||