| Package | Description |
|---|---|
| cdc.util.data | |
| cdc.util.data.util |
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.Comparator<Attribute> |
Attribute.NAME_COMPARATOR |
A Comparator of attributes that compares names.
|
| Modifier and Type | Method | Description |
|---|---|---|
Attribute |
Element.getAttribute(java.lang.String name) |
Returns the attribute that has a particular name, or
null. |
Attribute |
Element.getAttributeAt(int index) |
Returns the attribute at a given index.
|
Attribute |
Element.removeAttribute(java.lang.String name) |
Removes an attribute identified by its name.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<Attribute> |
Element.getAttributes() |
|
java.util.List<Attribute> |
Element.getSortedAttributes() |
|
static java.util.function.Predicate<Attribute> |
Attribute.named(java.lang.String name) |
Creates a Predicate that accepts Attributes with a given name.
|
static java.util.function.Predicate<Attribute> |
Attribute.named(java.lang.String... names) |
Creates a Predicate that accepts Attributes with a name belonging to an array.
|
static java.util.function.Predicate<Attribute> |
Attribute.named(java.util.Set<java.lang.String> names) |
Creates a Predicate that accepts Attributes with a name belonging to a set.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
Element.addAttribute(Attribute attribute) |
Adds an attribute.
|
void |
Element.addAttributes(Attribute... attributes) |
Adds an array of attributes to this element.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
Element.addAttributes(java.util.Collection<Attribute> attributes) |
Adds all attributes of a collection to this element.
|
void |
Element.removeAttributes(java.util.function.Predicate<Attribute> predicate) |
|
void |
Element.removeAttributes(java.util.function.Predicate<Attribute> predicate,
boolean recurse) |
| Constructor | Description |
|---|---|
Attribute(Attribute other) |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
DataUtil.sortAttributes(Parent parent,
java.util.Comparator<Attribute> comparator,
cdc.util.function.Evaluator<? super Parent> evaluator) |
Sorts attributes of elements using a user defined sorter.
|
Copyright © 2019. All rights reserved.