| 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 |
|---|---|---|
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 |
Element |
|
class |
Text |
Text node.
|
| Modifier and Type | Method | Description |
|---|---|---|
Child |
Child.clone(boolean recurse) |
|
default Child |
Parent.getChildAt(int index) |
Return the child at a given, index or null.
|
default Child |
Parent.getLastChild() |
|
Child |
AbstractChild.getRootChild() |
|
Child |
Child.getRootChild() |
|
Child |
Parent.removeChildAt(int index) |
Remove the child located at a given index.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
Document.addChild(Child child) |
|
boolean |
Element.addChild(Child child) |
|
boolean |
Parent.addChild(Child child) |
Add a child to this parent, if possible.
|
boolean |
Document.canAddChild(Child child) |
|
boolean |
Element.canAddChild(Child child) |
|
boolean |
Parent.canAddChild(Child child) |
Returns true when a child can be added.
|
boolean |
Document.removeChild(Child child) |
|
boolean |
Element.removeChild(Child child) |
|
boolean |
Parent.removeChild(Child child) |
Remove a child.
|
| 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 © 2018. All rights reserved.