| Package | Description |
|---|---|
| cdc.util.data | |
| cdc.util.data.util | |
| cdc.util.data.xml |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
Child |
Interface implemented by child nodes : they have an optional parent.
|
interface |
Leaf |
Interface implemented by leaf nodes (they have no children).
|
interface |
Parent |
Interface implemented by nodes that are parents (they have children nodes): Document and Element.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
AbstractChild |
Base class of nodes that are children (they have a parent node).
|
class |
AbstractContentNode |
Base class for nodes with content : text and comment.
|
class |
Comment |
|
class |
Document |
|
class |
Element |
|
class |
Text |
Text node.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.function.Predicate<Node> |
Node.ANY_NODE |
|
static java.util.function.Predicate<Node> |
Node.IS_COMMENT |
|
static java.util.function.Predicate<Node> |
Node.IS_ELEMENT |
|
static java.util.function.Predicate<Node> |
Node.IS_EMPTY_ELEMENT |
|
static java.util.function.Predicate<Node> |
Node.IS_IGNORABLE_TEXT |
|
static java.util.function.Predicate<Node> |
Node.IS_TEXT |
| Modifier and Type | Method | Description |
|---|---|---|
default <T extends Node> |
Parent.getChildren(java.lang.Class<T> childClass) |
Returns an Iterable of children that are instance of a given class.
|
default <T extends Node> |
Parent.getChildren(java.lang.Class<T> childClass,
java.util.function.Predicate<? super T> predicate) |
Returns an Iterable of children that are instance of a given class and match a predicate.
|
| Modifier and Type | Method | Description |
|---|---|---|
Node |
Node.clone(boolean recurse) |
Return a clone of this node.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
Comment.deepEquals(Node node) |
|
boolean |
Document.deepEquals(Node node) |
|
boolean |
Element.deepEquals(Node node) |
|
boolean |
Node.deepEquals(Node node) |
Return true when this node and its descendants equals other node hierarchy.
|
boolean |
Text.deepEquals(Node node) |
| Modifier and Type | Method | Description |
|---|---|---|
default int |
Parent.getChildrenCount(java.lang.Class<? extends Node> childClass) |
|
default boolean |
Parent.hasChildren(java.lang.Class<? extends Node> childClass) |
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.Comparator<Node> |
DataUtil.ELEMENT_NAME_AND_ATTRIBUTES_COMPARATOR |
|
static java.util.Comparator<Node> |
DataUtil.ELEMENT_NAME_COMPARATOR |
|
static cdc.util.function.Evaluator<Node> |
DataUtil.RECURSE |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
DataUtil.hasAllDescendantsMatching(Node node,
java.util.function.Predicate<Node> predicate,
boolean strict) |
|
static boolean |
DataUtil.hasAncestorMatching(Node node,
java.util.function.Predicate<Node> predicate) |
|
static boolean |
DataUtil.hasDescendantMatching(Node node,
java.util.function.Predicate<Node> predicate,
boolean strict) |
|
static void |
DataDebug.print(Node node,
int level,
java.io.PrintStream out) |
|
static void |
DataDebug.print(Node node,
Node highlight1,
Node highlight2,
int level,
java.io.PrintStream out) |
|
static void |
DataStats.print(Node node,
java.io.PrintStream out) |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
DataUtil.hasAllDescendantsMatching(Node node,
java.util.function.Predicate<Node> predicate,
boolean strict) |
|
static boolean |
DataUtil.hasAncestorMatching(Node node,
java.util.function.Predicate<Node> predicate) |
|
static boolean |
DataUtil.hasDescendantMatching(Node node,
java.util.function.Predicate<Node> predicate,
boolean strict) |
| Constructor | Description |
|---|---|
DataStats(Node node) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
XmlDataWriter.write(Node node) |
|
static void |
XmlDataWriter.write(Node node,
java.io.PrintStream out,
boolean close,
XmlWriter.Feature... features) |
|
static void |
XmlDataWriter.write(Node node,
java.lang.String filename,
XmlWriter.Feature... features) |
Copyright © 2018. All rights reserved.