public final class Text extends AbstractContentNode
It has a text content and can be attached to a Document or Element.
ANY_NODE, IS_COMMENT, IS_ELEMENT, IS_EMPTY_ELEMENT, IS_IGNORABLE_TEXT, IS_TEXT| Constructor | Description |
|---|---|
Text() |
|
Text(Parent parent) |
|
Text(Parent parent,
java.lang.String content) |
|
Text(Text other) |
|
Text(java.lang.String content) |
| Modifier and Type | Method | Description |
|---|---|---|
Text |
clone(boolean recurse) |
Return a clone of this node.
|
boolean |
deepEquals(Node node) |
Return true when this node and its descendants equals other node hierarchy.
|
boolean |
equals(java.lang.Object object) |
|
NodeType |
getType() |
|
int |
hashCode() |
|
boolean |
isIgnorable() |
getDocument, getParent, getRootChild, getRootElement, resetParent, setParent, toStringappendContent, appendContent, appendContent, clearContent, getContent, setContentgetParent, getRootChild, setParentgetDocument, getRootElementpublic Text()
public Text(Parent parent)
public Text(java.lang.String content)
public Text(Parent parent, java.lang.String content)
public Text(Text other)
public NodeType getType()
public Text clone(boolean recurse)
Nodepublic boolean deepEquals(Node node)
NodeParents are ignored.
node - The other node to compare.public boolean isIgnorable()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.ObjectCopyright © 2018. All rights reserved.