Package cdc.util.data
Class AbstractChild
- java.lang.Object
-
- cdc.util.data.AbstractChild
-
-
Field Summary
-
Fields inherited from interface cdc.util.data.Node
ANY_NODE, ELEMENT_NAME_AND_ATTRIBUTES_COMPARATOR, ELEMENT_NAME_COMPARATOR, IS_COMMENT, IS_ELEMENT, IS_IGNORABLE_TEXT, IS_PURE_ELEMENT, IS_TEXT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractChild()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractChildclone(boolean recurse)Return a clone of this node.booleanequals(Object object)DocumentgetDocument()ParentgetParent()ElementgetRootElement()Returns the root element of this node.inthashCode()protected voidresetParent()voidsetParent(Parent parent)Sets or changes the parent of this child.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cdc.util.data.Child
detach, getIndex, getParent, getRootChild, setIndex
-
Methods inherited from interface cdc.util.data.Node
deepEquals, getQName, getType
-
-
-
-
Method Detail
-
clone
public abstract AbstractChild clone(boolean recurse)
Description copied from interface:NodeReturn a clone of this node.
-
getDocument
public final Document getDocument()
- Specified by:
getDocumentin interfaceNode- Returns:
- The document of this node, possibly null.
-
getRootElement
public final Element getRootElement()
Description copied from interface:NodeReturns the root element of this node.If this node is a document, then this is its unique child element, possibly
null.
If this node is a child, then this is the highest ancestor that is an element, possiblynull.- Specified by:
getRootElementin interfaceNode- Returns:
- The root element of this node, possibly null.
-
getParent
public final Parent getParent()
-
resetParent
protected final void resetParent()
-
setParent
public final void setParent(Parent parent)
Description copied from interface:ChildSets or changes the parent of this child.
-
-