AbstractChild, AbstractContentNode, Comment, Document, Element, Textpublic interface Node
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.function.Predicate<Node> |
ANY_NODE |
|
static java.util.function.Predicate<Node> |
IS_COMMENT |
|
static java.util.function.Predicate<Node> |
IS_ELEMENT |
|
static java.util.function.Predicate<Node> |
IS_EMPTY_ELEMENT |
|
static java.util.function.Predicate<Node> |
IS_IGNORABLE_TEXT |
|
static java.util.function.Predicate<Node> |
IS_TEXT |
| Modifier and Type | Method | Description |
|---|---|---|
Node |
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.
|
Document |
getDocument() |
|
Element |
getRootElement() |
|
NodeType |
getType() |
static final java.util.function.Predicate<Node> ANY_NODE
static final java.util.function.Predicate<Node> IS_COMMENT
static final java.util.function.Predicate<Node> IS_ELEMENT
static final java.util.function.Predicate<Node> IS_TEXT
static final java.util.function.Predicate<Node> IS_EMPTY_ELEMENT
static final java.util.function.Predicate<Node> IS_IGNORABLE_TEXT
NodeType getType()
Node clone(boolean recurse)
recurse - If true, also clone children nodes.boolean deepEquals(Node node)
Parents are ignored.
node - The other node to compare.Document getDocument()
Element getRootElement()
Copyright © 2018. All rights reserved.