public abstract class ChildNode extends NodeImpl
| Modifier and Type | Field and Description | 
|---|---|
| protected ChildNode | nextSiblingNext sibling. | 
| protected ChildNode | previousSiblingPrevious sibling. | 
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE| Modifier | Constructor and Description | 
|---|---|
|   | ChildNode()Constructor for serialization. | 
| protected  | ChildNode(CoreDocumentImpl ownerDocument)No public constructor; only subclasses of Node should be
 instantiated, and those normally via a Document's factory methods | 
| Modifier and Type | Method and Description | 
|---|---|
| org.w3c.dom.Node | cloneNode(boolean deep)Returns a duplicate of a given node. | 
| org.w3c.dom.Node | getNextSibling()The next child of this node's parent, or null if none | 
| org.w3c.dom.Node | getParentNode()Returns the parent node of this node | 
| org.w3c.dom.Node | getPreviousSibling()The previous child of this node's parent, or null if none | 
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getContainer, getFeature, getFirstChild, getLastChild, getLength, getLocalName, getNamespaceURI, getNodeName, getNodeNumber, getNodeType, getNodeValue, getOwnerDocument, getPrefix, getReadOnly, getTextContent, getUserData, getUserData, getUserDataRecord, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, needsSyncChildren, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setReadOnly, setTextContent, setUserData, setUserData, synchronizeData, toStringprotected ChildNode previousSibling
protected ChildNode nextSibling
protected ChildNode(CoreDocumentImpl ownerDocument)
Every Node knows what Document it belongs to.
public ChildNode()
public org.w3c.dom.Node cloneNode(boolean deep)
Note: since we never have any children deep is meaningless here, ParentNode overrides this behavior.
cloneNode in interface org.w3c.dom.NodecloneNode in class NodeImpldeep - If true, recursively clone the subtree under 
   the specified node; if false, clone only the node 
   itself (and its attributes, if it is an Element).
 Example: Cloning a Text node will copy both the node and the text it
 contains.
 
 Example: Cloning something that has children -- Element or Attr, for
 example -- will _not_ clone those children unless a "deep clone"
 has been requested. A shallow clone of an Attr node will yield an
 empty Attr of the same name.
 
 NOTE: Clones will always be read/write, even if the node being cloned
 is read-only, to permit applications using only the DOM API to obtain
 editable copies of locked portions of the tree.
public org.w3c.dom.Node getParentNode()
getParentNode in interface org.w3c.dom.NodegetParentNode in class NodeImplpublic org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.NodegetNextSibling in class NodeImplpublic org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.NodegetPreviousSibling in class NodeImplCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.