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, userDataHandlersATTRIBUTE_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 and Description |
|---|
AbstractParentNode() |
| Modifier and Type | Method and Description |
|---|---|
Node |
appendChild(Node newChild)
DOM: Implements
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
Node.getChildNodes(). |
NodeList |
getElementsByTagName(String name)
DOM: Implements
Element.getElementsByTagName(String). |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
DOM: Implements
Element.getElementsByTagNameNS(String,String). |
Node |
getFirstChild()
DOM: Implements
Node.getFirstChild(). |
Node |
getLastChild()
DOM: Implements
Node.getLastChild(). |
String |
getTextContent()
DOM: Implements
Node.getTextContent(). |
boolean |
hasChildNodes()
DOM: Implements
Node.hasChildNodes(). |
Node |
insertBefore(Node newChild,
Node refChild)
DOM: Implements
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
Node.normalize(). |
Node |
removeChild(Node oldChild)
DOM: Implements
Node.removeChild(Node). |
Node |
replaceChild(Node newChild,
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, setReadonlygetNodeName, getNodeTypeprotected AbstractParentNode.ChildNodes childNodes
public NodeList getChildNodes()
Node.getChildNodes().getChildNodes in interface NodegetChildNodes in class AbstractNodechildNodespublic Node getFirstChild()
Node.getFirstChild().getFirstChild in interface NodegetFirstChild in class AbstractNodechildNodes.firstChildpublic Node getLastChild()
Node.getLastChild().getLastChild in interface NodegetLastChild in class AbstractNodechildNodes.lastChildpublic Node insertBefore(Node newChild, Node refChild) throws DOMException
Node.insertBefore(Node, Node).insertBefore in interface NodeinsertBefore in class AbstractNodeDOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
Node.replaceChild(Node, Node).replaceChild in interface NodereplaceChild in class AbstractNodeDOMExceptionpublic Node removeChild(Node oldChild) throws DOMException
Node.removeChild(Node).removeChild in interface NoderemoveChild in class AbstractNodeDOMExceptionpublic Node appendChild(Node newChild) throws DOMException
Node.appendChild(Node).appendChild in interface NodeappendChild in class AbstractNodeDOMExceptionpublic boolean hasChildNodes()
Node.hasChildNodes().hasChildNodes in interface NodehasChildNodes in class AbstractNodepublic void normalize()
Node.normalize().normalize in interface Nodenormalize in class AbstractNodepublic NodeList getElementsByTagName(String name)
Element.getElementsByTagName(String).public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
Element.getElementsByTagNameNS(String,String).public String getTextContent()
Node.getTextContent().getTextContent in interface NodegetTextContent in class AbstractNodepublic void fireDOMNodeInsertedIntoDocumentEvent()
fireDOMNodeInsertedIntoDocumentEvent in class AbstractNodepublic void fireDOMNodeRemovedFromDocumentEvent()
fireDOMNodeRemovedFromDocumentEvent in class AbstractNodeprotected void nodeAdded(Node n)
protected void nodeToBeRemoved(Node n)
protected Node deepExport(Node n, AbstractDocument d)
deepExport in class AbstractNodeprotected Node deepCopyInto(Node n)
deepCopyInto in class AbstractNoden - a node of the type of this.protected void fireDOMSubtreeModifiedEvent()
protected void fireDOMNodeInsertedEvent(Node node)
protected void fireDOMNodeRemovedEvent(Node node)
protected void checkAndRemove(Node n, boolean replace)
Copyright © 2000–2021 Apache Software Foundation. All rights reserved.