| Package | Description |
|---|---|
| cdc.util.data | |
| cdc.util.data.util |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
Leaf |
Interface implemented by leaf nodes (they have no children).
|
| Modifier and Type | Class | Description |
|---|---|---|
(package private) class |
AbstractChild |
Base class of nodes that are children (they have a parent node).
|
(package private) class |
AbstractContentNode |
Base class for nodes with content: text and comment.
|
class |
Comment |
Comment node.
|
class |
Element |
XML like Element node.
|
class |
Text |
Text node.
|
| Modifier and Type | Method | Description |
|---|---|---|
default <C extends Child> |
Parent.addChild(C child) |
Adds a child to this parent.
|
| Modifier and Type | Method | Description |
|---|---|---|
Child |
Child.clone(boolean recurse) |
|
default Child |
Parent.getChildAt(int index) |
Returns the child at a given, index or null.
|
default Child |
Parent.getLastChild() |
|
default Child |
Child.getRootChild() |
Returns the highest ancestor of this child that is a child.
|
default Child |
Parent.removeChildAt(int index) |
Removes the child located at a given index.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<Child> |
Document.getChildren() |
|
java.util.List<Child> |
Element.getChildren() |
|
java.util.List<? extends Child> |
Parent.getChildren() |
|
java.util.List<Child> |
Document.getModifiableChildren() |
|
java.util.List<Child> |
Element.getModifiableChildren() |
|
java.util.List<Child> |
Parent.getModifiableChildren() |
| Modifier and Type | Method | Description |
|---|---|---|
default void |
Parent.addChildren(Child... children) |
Adds all children of an array to this parent.
|
boolean |
Document.canAddChild(Child child) |
|
boolean |
Element.canAddChild(Child child) |
|
boolean |
Parent.canAddChild(Child child) |
Returns
true when a child can be added. |
default boolean |
Parent.removeChild(Child child) |
Remove a child.
|
| Modifier and Type | Method | Description |
|---|---|---|
default void |
Parent.addChildren(java.lang.Iterable<? extends Child> children) |
Adds all children of an Iterable to this parent.
|
default void |
Parent.removeChildren(java.util.function.Predicate<? super Child> predicate) |
Removes all children that match a predicate.
|
default void |
Parent.removeChildren(java.util.function.Predicate<? super Child> predicate,
boolean pre,
boolean recurse) |
Removes all children that match a predicate, recursively.
|
default void |
Parent.sortChildren(java.util.Comparator<? super Child> comparator) |
Sorts children locally.
|
default void |
Parent.sortChildren(java.util.Comparator<? super Child> comparator,
boolean recurse) |
Sorts children recursively.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
DataUtil.removeMatchingChildren(Parent parent,
java.util.function.Predicate<? super Child> predicate,
cdc.util.function.Evaluator<? super Parent> evaluator) |
Removes matching children.
|
static void |
DataUtil.sortChildren(Parent parent,
java.util.function.Predicate<? super Parent> predicate,
java.util.Comparator<? super Child> comparator,
cdc.util.function.Evaluator<? super Parent> evaluator) |
Sorts children nodes using a user-defined comparator.
|
Copyright © 2019. All rights reserved.