| Package | Description |
|---|---|
| cdc.util.data | |
| cdc.util.data.paths | |
| cdc.util.data.util | |
| cdc.util.data.xml |
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.Comparator<Element> |
Element.NAME_COMPARATOR |
A comparator of elements using their names.
|
| Modifier and Type | Method | Description |
|---|---|---|
default Element |
Parent.addElement(java.lang.String name) |
Creates and adds a child element as last child, if possible.
|
Element |
Element.clone(boolean recurse) |
|
default Element |
Parent.getElementNamed(java.lang.String name) |
Returns the first child element that has a given name or
null. |
default Element |
Parent.getElementNamedAt(java.lang.String name,
int index) |
Returns the child element that has a given name and index.
|
default Element |
Parent.getElementNamedIgnoreCase(java.lang.String name) |
Returns the first child element that has a given name, ignoring case, or
null. |
default Element |
Parent.getElementNamedIgnoreCaseAt(java.lang.String name,
int index) |
Returns the child element that has a given name, ignoring case, and index.
|
default Element |
Parent.getElementNamedWithAttribute(java.lang.String name,
java.lang.String attributeName,
java.lang.String attributeValue) |
|
Element |
AbstractChild.getRootElement() |
|
Element |
Document.getRootElement() |
|
static Element |
Document.getRootElement(Document document) |
Returns the root element of a document.
|
Element |
Node.getRootElement() |
Returns the root element of this node.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Comparator<Element> |
Element.compareAttribute(java.lang.String attributeName) |
Returns a comparator that compares the values of a particular attribute.
|
static java.util.Comparator<Element> |
Element.compareNameAndAttribute(java.lang.String attributeName) |
Returns a comparator that compares the names then the values of a particular attribute.
|
default java.lang.Iterable<Element> |
Parent.getElements() |
|
default java.lang.Iterable<Element> |
Parent.getElementsNamed(java.lang.String name) |
Returns an Iterable of children elements that have a given name.
|
default java.lang.Iterable<Element> |
Parent.getElementsNamedIgnoreCase(java.lang.String name) |
Returns an Iterable of children elements that have a given name, ignoring case.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
Node.getNameAndAttributes(Element element) |
|
static DataException |
DataException.unexpectedElement(Element element) |
| Constructor | Description |
|---|---|
Element(Element other) |
Creates an element by cloning another one.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
SPath.matchesAttribute(Element parent,
java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
AttributePredicate.accepts(Element element,
java.lang.String name,
java.lang.String value) |
Returns
true when the attribute must be kept. |
boolean |
ElementPredicate.accepts(Parent parent,
Element element) |
Returns true when an element must be kept.
|
java.lang.String |
AttributeNameConverter.convertAttributeName(Element element,
java.lang.String name) |
Returns the name that should be used instead of the original name.
|
java.lang.String |
AttributeValueConverter.convertAttributeValue(Element element,
java.lang.String name,
java.lang.String value) |
Returns the value that should be used instead of the original value.
|
protected abstract R |
AbstractResourceLoader.loadRoot(Element root) |
|
protected void |
AbstractResourceLoader.unexpectedElement(Element element,
java.lang.String... expected) |
|
protected <V> V |
AbstractResourceLoader.unexpectedElement(Element element,
V def,
java.lang.String... expected) |
| Modifier and Type | Method | Description |
|---|---|---|
static ElementPredicate |
ElementPredicate.fromPredicate(java.util.function.Predicate<Element> predicate) |
|
static void |
DataUtil.moveAttributeFirst(Parent parent,
java.util.function.Predicate<? super Element> predicate,
java.lang.String name,
cdc.util.function.Evaluator<? super Parent> evaluator) |
Moves the attribute that has a given name to first position, if it exists.
|
static void |
DataUtil.setNameOfMatchingElements(Parent parent,
java.util.function.Predicate<? super Element> predicate,
ElementNameConverter converter,
cdc.util.function.Evaluator<? super Parent> evaluator) |
Sets the name of matching elements.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Element |
XmlDataReader.loadRoot(java.io.File file,
cdc.util.compress.Compressor compressor,
XmlDataReader.Feature... features) |
|
static Element |
XmlDataReader.loadRoot(java.io.File file,
XmlDataReader.Feature... features) |
|
static Element |
XmlDataReader.loadRoot(java.io.InputStream is,
XmlDataReader.Feature... features) |
|
static Element |
XmlDataReader.loadRoot(java.io.InputStream is,
java.lang.String systemId,
XmlDataReader.Feature... features) |
|
static Element |
XmlDataReader.loadRoot(java.lang.String filename,
cdc.util.compress.Compressor compressor,
XmlDataReader.Feature... features) |
|
static Element |
XmlDataReader.loadRoot(java.lang.String filename,
XmlDataReader.Feature... features) |
|
static Element |
XmlDataReader.loadRoot(java.lang.String s,
java.nio.charset.Charset charset,
XmlDataReader.Feature... features) |
|
static Element |
XmlDataReader.loadRoot(java.net.URL url,
cdc.util.compress.Compressor compressor,
XmlDataReader.Feature... features) |
|
static Element |
XmlDataReader.loadRoot(java.net.URL url,
XmlDataReader.Feature... features) |
|
Element |
XmlDataReader.readRoot(java.io.File file) |
Reads a file.
|
Element |
XmlDataReader.readRoot(java.io.File file,
cdc.util.compress.Compressor compressor) |
Reads a file.
|
Element |
XmlDataReader.readRoot(java.io.InputStream is) |
|
Element |
XmlDataReader.readRoot(java.io.InputStream is,
java.lang.String systemId) |
Reads an InputStream.
|
Element |
XmlDataReader.readRoot(java.lang.String filename) |
Reads a file.
|
Element |
XmlDataReader.readRoot(java.lang.String filename,
cdc.util.compress.Compressor compressor) |
Reads a file.
|
Element |
XmlDataReader.readRoot(java.lang.String s,
java.nio.charset.Charset charset) |
Reads a string.
|
Element |
XmlDataReader.readRoot(java.net.URL url) |
Reads an URL.
|
Element |
XmlDataReader.readRoot(java.net.URL url,
cdc.util.compress.Compressor compressor) |
Reads an URL.
|
Copyright © 2019. All rights reserved.