public abstract class AbstractParentNode extends AbstractNode
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
protected AbstractParentNode.ChildNodes |
childNodes
The children.
|
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| Constructor and Description |
|---|
AbstractParentNode() |
| Modifier and Type | Method and Description |
|---|---|
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). |
addEventListener, addEventListenerNS, checkChildType, cloneNode, compareDocumentPosition, compareNamedNodeMaps, compareStrings, copyInto, createDOMException, dispatchEvent, export, fireDOMCharacterDataModifiedEvent, fireUserDataHandlers, getAttributes, getBaseURI, getBaseURI, getCascadedXMLBase, getCurrentDocument, getEventSupport, getFeature, getLocalName, getManagerData, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getParentNodeEventTarget, getPrefix, getPreviousSibling, getUserData, getXblBoundElement, getXblChildNodes, getXblDefinitions, getXblFirstChild, getXblFirstElementChild, getXblLastChild, getXblLastElementChild, getXblNextElementSibling, getXblNextSibling, getXblParentNode, getXblPreviousElementSibling, getXblPreviousSibling, getXblScopedChildNodes, getXblShadowTree, hasAttributes, hasEventListenerNS, initializeEventSupport, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, newNode, removeEventListener, removeEventListenerNS, setManagerData, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setSpecified, setTextContent, setUserData, willTriggerNSclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadonly, setReadonlyprotected AbstractParentNode.ChildNodes childNodes
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.lastChildpublic 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.DOMExceptionpublic 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.DOMExceptionpublic 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.DOMExceptionpublic 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)
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.