AbstractContentNode, Elementabstract class AbstractChild extends java.lang.Object implements Child
ANY_NODE, ELEMENT_NAME_AND_ATTRIBUTES_COMPARATOR, ELEMENT_NAME_COMPARATOR, IS_COMMENT, IS_ELEMENT, IS_IGNORABLE_TEXT, IS_PURE_ELEMENT, IS_TEXT| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractChild() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract AbstractChild |
clone(boolean recurse) |
Return a clone of this node.
|
boolean |
equals(java.lang.Object object) |
|
Document |
getDocument() |
|
Parent |
getParent() |
|
Element |
getRootElement() |
Returns the root element of this node.
|
int |
hashCode() |
|
protected void |
resetParent() |
|
void |
setParent(Parent parent) |
Sets or changes the parent of this child.
|
java.lang.String |
toString() |
detach, getIndex, getParent, getRootChild, setIndexdeepEquals, getNameAndAttributes, getQName, getTypepublic abstract AbstractChild clone(boolean recurse)
Nodepublic final Document getDocument()
getDocument in interface Nodepublic final Element getRootElement()
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, possibly null.
getRootElement in interface Nodepublic final Parent getParent()
protected final void resetParent()
public final void setParent(Parent parent)
Childpublic java.lang.String toString()
toString in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object object)
equals in class java.lang.ObjectCopyright © 2019. All rights reserved.