public final class Element extends AbstractChild implements Parent
It has a name, can have children (elements, comments or texts).
It can also have attributes.
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.Comparator<Element> |
NAME_COMPARATOR |
A comparator of elements using their names.
|
ANY_NODE, ELEMENT_NAME_AND_ATTRIBUTES_COMPARATOR, ELEMENT_NAME_COMPARATOR, IS_COMMENT, IS_ELEMENT, IS_IGNORABLE_TEXT, IS_PURE_ELEMENT, IS_TEXT| Constructor | Description |
|---|---|
Element(Element other) |
Creates an element by cloning another one.
|
Element(Parent parent,
java.lang.String name) |
Creates an element.
|
Element(java.lang.String name) |
Creates an element.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAttribute(Attribute attribute) |
Adds an attribute.
|
void |
addAttribute(java.lang.String name,
boolean value) |
Adds a boolean attribute.
|
void |
addAttribute(java.lang.String name,
byte value) |
Adds a byte attribute.
|
void |
addAttribute(java.lang.String name,
double value) |
Adds a double attribute.
|
void |
addAttribute(java.lang.String name,
float value) |
Adds a float attribute.
|
void |
addAttribute(java.lang.String name,
int value) |
Adds an int attribute.
|
void |
addAttribute(java.lang.String name,
long value) |
Adds a long attribute.
|
void |
addAttribute(java.lang.String name,
short value) |
Adds a short attribute.
|
void |
addAttribute(java.lang.String name,
java.lang.Object value) |
Adds an object attribute.
|
void |
addAttribute(java.lang.String name,
java.lang.String value) |
Adds a string attribute.
|
void |
addAttributes(Attribute... attributes) |
Adds an array of attributes to this element.
|
void |
addAttributes(java.util.Collection<Attribute> attributes) |
Adds all attributes of a collection to this element.
|
Text |
addText(java.lang.String content) |
Adds a text as last child.
|
Text |
addText(java.lang.String content,
boolean merge) |
Adds a text as last child.
|
boolean |
canAddChild(Child child) |
Returns
true when a child can be added. |
void |
changeAttributeValue(java.lang.String name,
java.util.function.Function<java.lang.String,java.lang.String> modifier) |
Changes the value of attributes that have a given name.
|
void |
changeAttributeValue(java.lang.String name,
java.util.function.Function<java.lang.String,java.lang.String> modifier,
boolean recurse) |
Changes the value of attributes that have a given name.
|
void |
changeName(java.util.function.Function<java.lang.String,java.lang.String> modifier) |
Changes the element name.
|
void |
changeName(java.util.function.Function<java.lang.String,java.lang.String> modifier,
boolean recurse) |
Changes element names recursively.
|
Element |
clone(boolean recurse) |
Return a clone of this node.
|
static java.util.Comparator<Element> |
compareAttribute(java.lang.String attributeName) |
Returns a comparator that compares the values of a particular attribute.
|
static java.util.Comparator<Element> |
compareNameAndAttribute(java.lang.String attributeName) |
Returns a comparator that compares the names then the values of a particular attribute.
|
boolean |
deepEquals(Node node) |
Return true when this node and its descendants equals other node hierarchy.
|
Attribute |
getAttribute(java.lang.String name) |
Returns the attribute that has a particular name, or
null. |
boolean |
getAttributeAsBoolean(java.lang.String name,
boolean def) |
Returns the value associated to an attribute as a boolean or a default value.
|
byte |
getAttributeAsByte(java.lang.String name,
byte def) |
Returns the value associated to an attribute as a byte.
|
double |
getAttributeAsDouble(java.lang.String name,
double def) |
Returns the value associated to an attribute as a double.
|
<E extends java.lang.Enum<E>> |
getAttributeAsEnum(java.lang.String name,
java.lang.Class<E> enumClass,
E def) |
Returns the value associated to an attribute as an enum.
|
float |
getAttributeAsFloat(java.lang.String name,
float def) |
Returns the value associated to an attribute as a float.
|
int |
getAttributeAsInt(java.lang.String name,
int def) |
Returns the value associated to an attribute as an int.
|
long |
getAttributeAsLong(java.lang.String name,
long def) |
Returns the value associated to an attribute as a long.
|
java.lang.Boolean |
getAttributeAsOptionalBoolean(java.lang.String name,
java.lang.Boolean def) |
Returns the value associated to an attribute as a Boolean or a default value.
|
java.lang.Byte |
getAttributeAsOptionalByte(java.lang.String name,
java.lang.Byte def) |
Returns the value associated to an attribute as a Byte.
|
java.lang.Double |
getAttributeAsOptionalDouble(java.lang.String name,
java.lang.Double def) |
Returns the value associated to an attribute as a Double.
|
<E extends java.lang.Enum<E>> |
getAttributeAsOptionalEnum(java.lang.String name,
java.lang.Class<E> enumClass,
E def) |
|
java.lang.Float |
getAttributeAsOptionalFloat(java.lang.String name,
java.lang.Float def) |
Returns the value associated to an attribute as a Float.
|
java.lang.Integer |
getAttributeAsOptionalInt(java.lang.String name,
java.lang.Integer def) |
Returns the value associated to an attribute as an Integer.
|
java.lang.Long |
getAttributeAsOptionalLong(java.lang.String name,
java.lang.Long def) |
Returns the value associated to an attribute as a Long.
|
java.lang.Enum<?> |
getAttributeAsOptionalRawEnum(java.lang.String name,
java.lang.Class<? extends java.lang.Enum<?>> enumClass,
java.lang.Enum<?> def) |
|
java.lang.Short |
getAttributeAsOptionalShort(java.lang.String name,
java.lang.Short def) |
Returns the value associated to an attribute as a Short.
|
java.lang.Enum<?> |
getAttributeAsRawEnum(java.lang.String name,
java.lang.Class<? extends java.lang.Enum<?>> enumClass,
java.lang.Enum<?> def) |
|
short |
getAttributeAsShort(java.lang.String name,
short def) |
Returns the value associated to an attribute as a short.
|
Attribute |
getAttributeAt(int index) |
Returns the attribute at a given index.
|
int |
getAttributeIndex(java.lang.String name) |
Returns the index of the attribute that has a particular name or -1.
|
java.util.List<Attribute> |
getAttributes() |
|
int |
getAttributesCount() |
|
java.lang.String |
getAttributeValue(java.lang.String name) |
Returns the value associated to an attribute as a string or
null. |
java.lang.String |
getAttributeValue(java.lang.String name,
java.lang.String def) |
Returns the value associated to an attribute as a string or a default value.
|
java.lang.String |
getAttributeValue(java.lang.String name,
java.lang.String def,
cdc.util.lang.FailureReaction missingReaction) |
Returns the value associated to an attribute.
|
java.util.List<Child> |
getChildren() |
|
ElementContentType |
getContentType() |
|
java.lang.String |
getElementNamedText(java.lang.String name) |
Returns the text content of the first child element that has a given name.
|
java.lang.String |
getElementNamedText(java.lang.String name,
java.lang.String def) |
Returns the text content of the first child element that has a given name.
|
java.util.List<Child> |
getModifiableChildren() |
|
java.lang.String |
getName() |
|
java.lang.String |
getQName() |
|
java.util.List<Attribute> |
getSortedAttributes() |
|
java.lang.String |
getText() |
Returns the merged content of all children text nodes, if this node has no element children.
|
java.lang.String |
getText(java.lang.String def) |
Returns the merged content of all children text nodes, if this node has no element children.
|
boolean |
getTextAsBoolean(boolean def) |
|
byte |
getTextAsByte(byte def) |
|
double |
getTextAsDouble(double def) |
|
<E extends java.lang.Enum<E>> |
getTextAsEnum(java.lang.Class<E> enumClass,
E def) |
|
float |
getTextAsFloat(float def) |
|
int |
getTextAsInt(int def) |
|
long |
getTextAsLong(long def) |
|
java.lang.Boolean |
getTextAsOptionalBoolean(java.lang.Boolean def) |
|
java.lang.Byte |
getTextAsOptionalByte(java.lang.Byte def) |
|
java.lang.Double |
getTextAsOptionalDouble(java.lang.Double def) |
|
<E extends java.lang.Enum<E>> |
getTextAsOptionalEnum(java.lang.Class<E> enumClass,
E def) |
|
java.lang.Float |
getTextAsOptionalFloat(java.lang.Float def) |
|
java.lang.Integer |
getTextAsOptionalInt(java.lang.Integer def) |
|
java.lang.Long |
getTextAsOptionalLong(java.lang.Long def) |
|
java.lang.Short |
getTextAsOptionalShort(java.lang.Short def) |
|
short |
getTextAsShort(short def) |
|
NodeType |
getType() |
|
boolean |
hasAttribute(java.lang.String name) |
Returns
true when an attribute with a particular name exists. |
static java.util.function.Predicate<Node> |
hasAttribute(java.lang.String attributeName,
java.lang.String attributeValue) |
Creates a Predicate that accepts Nodes that are elements that have an attribute with a given value.
|
boolean |
hasAttributes() |
|
boolean |
hasOnlyNonText() |
|
boolean |
hasOnlyText() |
|
boolean |
isEmpty() |
|
boolean |
isMixed() |
|
boolean |
isPure() |
|
boolean |
isRoot() |
|
static java.util.function.Predicate<Node> |
matching(java.util.Set<SPath> paths) |
|
static java.util.function.Predicate<Node> |
named(java.lang.String name) |
Creates a Predicate that accepts Nodes that are element with a given name.
|
static java.util.function.Predicate<Node> |
named(java.lang.String... names) |
Creates a Predicate that accepts Nodes that are element whose named belongs to an array.
|
static java.util.function.Predicate<Node> |
named(java.util.Set<java.lang.String> names) |
Creates a Predicate that accepts Nodes that are element whose named belongs to a set.
|
static java.util.function.Predicate<Node> |
namedIgnoreCase(java.lang.String name) |
Creates a Predicate that accepts Nodes that are element with a given name, ignoring case.
|
static java.util.function.Predicate<Node> |
namedWithAttribute(java.lang.String name,
java.lang.String attributeName,
java.lang.String attributeValue) |
Creates a Predicate that accepts Nodes that are elements with a given name and have an attribute with a given value.
|
Attribute |
removeAttribute(java.lang.String name) |
Removes an attribute identified by its name.
|
void |
removeAttributes() |
Remove all attributes of this element.
|
void |
removeAttributes(java.util.function.Predicate<Attribute> predicate) |
|
void |
removeAttributes(java.util.function.Predicate<Attribute> predicate,
boolean recurse) |
|
void |
removeAttributesNamed(java.lang.String name) |
|
void |
removeAttributesNamed(java.lang.String... names) |
|
void |
removeAttributesNamed(java.lang.String name,
boolean recurse) |
|
void |
removeAttributesNamed(java.util.Set<java.lang.String> names) |
|
void |
removeAttributesNamed(java.util.Set<java.lang.String> names,
boolean recurse) |
|
void |
setName(java.lang.String name) |
Sets the name of this element.
|
java.lang.String |
toString() |
equals, getDocument, getParent, getRootElement, hashCode, resetParent, setParentdetach, getIndex, getParent, getRootChild, setIndexgetDocument, getNameAndAttributes, getRootElementclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, addChildren, addChildren, addComment, addComment, addElement, changeComments, changeComments, changeNamedTexts, changeNamedTexts, changeTexts, changeTexts, getChild, getChild, getChildAt, getChildAt, getChildAt, getChildren, getChildren, getChildrenCount, getChildrenCount, getChildrenCount, getComments, getElementNamed, getElementNamedAt, getElementNamedIgnoreCase, getElementNamedIgnoreCaseAt, getElementNamedWithAttribute, getElements, getElementsNamed, getElementsNamedIgnoreCase, getLastChild, getTexts, hasChildren, hasChildren, hasChildren, hasComments, hasElements, hasTexts, mergeComments, mergeComments, mergeTexts, mergeTexts, removeChild, removeChildAt, removeChildren, removeChildren, removeChildren, removeComments, removeComments, removeElementsNamed, removeElementsNamed, removeIgnorableTexts, removeIgnorableTexts, removeTexts, removeTexts, sortChildren, sortChildrenpublic static final java.util.Comparator<Element> NAME_COMPARATOR
public Element(java.lang.String name)
name - The element name.java.lang.IllegalArgumentException - When name is invalid.public Element(Parent parent, java.lang.String name)
parent - The element's parent.name - The element name.java.lang.IllegalArgumentException - When name is invalid.java.lang.IllegalStateException - When parent can not not be set.public Element(Element other)
Cloning is shallow.
For deep cloning, use clone(boolean).
other - The element to clone.public static java.util.Comparator<Element> compareAttribute(java.lang.String attributeName)
attributeName - The name of the attribute to use.attributeName.public static java.util.Comparator<Element> compareNameAndAttribute(java.lang.String attributeName)
attributeName - The name of the attribute to use.attributeName.public Element clone(boolean recurse)
Nodepublic boolean deepEquals(Node node)
NodeParents are ignored.
deepEquals in interface Nodenode - The other node to compare.public java.lang.String getQName()
public boolean canAddChild(Child child)
Parenttrue when a child can be added.canAddChild in interface Parentchild - The childtrue when child can be added.public java.util.List<Child> getModifiableChildren()
getModifiableChildren in interface Parentpublic java.util.List<Child> getChildren()
getChildren in interface Parentpublic void setName(java.lang.String name)
name - The name.java.lang.IllegalArgumentException - When name is invalid.public java.lang.String getName()
public ElementContentType getContentType()
public boolean isEmpty()
true if this element has no children. It may have attributes.public boolean isPure()
true if this element is empty and has no attributes.public boolean hasOnlyText()
true if this element has only text children.public boolean hasOnlyNonText()
true if this element has only non-text (comments and elements) children.public boolean isMixed()
true if this element has text and non-text children.public boolean isRoot()
true if this element is a root element.public java.util.List<Attribute> getAttributes()
public java.util.List<Attribute> getSortedAttributes()
public int getAttributesCount()
public boolean hasAttributes()
true if this element has attributes.public Attribute getAttributeAt(int index)
index - The index.index.java.lang.IndexOutOfBoundsException - If the index is out of range
(index < 0 || index >= getAttributesCount())public boolean hasAttribute(java.lang.String name)
true when an attribute with a particular name exists.name - The name.true when an attribute named name exists.public Attribute getAttribute(java.lang.String name)
null.name - The name.name or null.public int getAttributeIndex(java.lang.String name)
name - The name.name or -1.public java.lang.String getAttributeValue(java.lang.String name,
java.lang.String def,
cdc.util.lang.FailureReaction missingReaction)
name - The attribute name.def - The value to return if no attribute named name exists.missingReaction - The reaction to adopt when attribute is not found.name or def.cdc.util.lang.NotFoundException - when attribute is not found and missingReaction is FailureReaction.FAIL.public java.lang.String getAttributeValue(java.lang.String name,
java.lang.String def)
name - The attribute name.def - The value to return if no attribute named name exists.name or def.public java.lang.String getAttributeValue(java.lang.String name)
null.name - The attribute name.name.cdc.util.lang.NotFoundException - when attribute is not found.public boolean getAttributeAsBoolean(java.lang.String name,
boolean def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a boolean.name or def.def is returned and a warning is issued.public java.lang.Boolean getAttributeAsOptionalBoolean(java.lang.String name,
java.lang.Boolean def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a Boolean.name or def.def is returned and a warning is issued.public long getAttributeAsLong(java.lang.String name,
long def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a long.name or def.def is returned and a warning is issued.public java.lang.Long getAttributeAsOptionalLong(java.lang.String name,
java.lang.Long def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a Long.name or def.def is returned and a warning is issued.public int getAttributeAsInt(java.lang.String name,
int def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to an int.name or def.def is returned and a warning is issued.public java.lang.Integer getAttributeAsOptionalInt(java.lang.String name,
java.lang.Integer def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to an Integer.name or def.def is returned and a warning is issued.public short getAttributeAsShort(java.lang.String name,
short def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a short.name or def.def is returned and a warning is issued.public java.lang.Short getAttributeAsOptionalShort(java.lang.String name,
java.lang.Short def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a Short.name or def.def is returned and a warning is issued.public byte getAttributeAsByte(java.lang.String name,
byte def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a byte.name or def.def is returned and a warning is issued.public java.lang.Byte getAttributeAsOptionalByte(java.lang.String name,
java.lang.Byte def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a Byte.name or def.def is returned and a warning is issued.public double getAttributeAsDouble(java.lang.String name,
double def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a double.name or def.def is returned and a warning is issued.public java.lang.Double getAttributeAsOptionalDouble(java.lang.String name,
java.lang.Double def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a Double.name or def.def is returned and a warning is issued.public float getAttributeAsFloat(java.lang.String name,
float def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a float.name or def.def is returned and a warning is issued.public java.lang.Float getAttributeAsOptionalFloat(java.lang.String name,
java.lang.Float def)
name - The attribute name.def - The value to return if no attribute named name exists
or if its value can not be converted to a Float.name or def.def is returned and a warning is issued.public java.lang.Enum<?> getAttributeAsRawEnum(java.lang.String name,
java.lang.Class<? extends java.lang.Enum<?>> enumClass,
java.lang.Enum<?> def)
public java.lang.Enum<?> getAttributeAsOptionalRawEnum(java.lang.String name,
java.lang.Class<? extends java.lang.Enum<?>> enumClass,
java.lang.Enum<?> def)
public <E extends java.lang.Enum<E>> E getAttributeAsEnum(java.lang.String name,
java.lang.Class<E> enumClass,
E def)
E - The enum type.name - The attribute name.enumClass - The enum class.def - The value to return if no attribute named name exists
or if its value can not be converted to an enum.name or def.public <E extends java.lang.Enum<E>> E getAttributeAsOptionalEnum(java.lang.String name,
java.lang.Class<E> enumClass,
E def)
public void addAttribute(Attribute attribute)
attribute - The attribute.java.lang.IllegalArgumentException - When attribute is invalid
or another attribute with same name already exists.public void addAttributes(java.util.Collection<Attribute> attributes)
attributes - The attributes to add.java.lang.IllegalArgumentException - When one of attributes is invalid
or another attribute with same name already exists.public void addAttributes(Attribute... attributes)
attributes - The attributes to add.java.lang.IllegalArgumentException - When one of attributes is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
java.lang.Object value)
The string value is constructed using value.toString().
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
java.lang.String value)
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
boolean value)
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
long value)
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
int value)
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
short value)
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
byte value)
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
double value)
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public void addAttribute(java.lang.String name,
float value)
name - The attribute name.value - The attribute value.java.lang.IllegalArgumentException - When name is invalid
or another attribute with same name already exists.public Attribute removeAttribute(java.lang.String name)
name - The name of the attribute to remove.public void removeAttributes(java.util.function.Predicate<Attribute> predicate)
public void removeAttributes(java.util.function.Predicate<Attribute> predicate, boolean recurse)
public void removeAttributesNamed(java.lang.String name)
public void removeAttributesNamed(java.lang.String name,
boolean recurse)
public void removeAttributesNamed(java.util.Set<java.lang.String> names)
public void removeAttributesNamed(java.util.Set<java.lang.String> names,
boolean recurse)
public void removeAttributesNamed(java.lang.String... names)
public void removeAttributes()
public void changeAttributeValue(java.lang.String name,
java.util.function.Function<java.lang.String,java.lang.String> modifier)
name - The attribute name.modifier - A function that take value and returns new value.public void changeAttributeValue(java.lang.String name,
java.util.function.Function<java.lang.String,java.lang.String> modifier,
boolean recurse)
name - The attribute name.modifier - A function that take value and returns new value.recurse - If true, then this is applied recursively.public void changeName(java.util.function.Function<java.lang.String,java.lang.String> modifier)
modifier - A function that take name and returns new name.public void changeName(java.util.function.Function<java.lang.String,java.lang.String> modifier,
boolean recurse)
modifier - A function that take name and returns new name.recurse - If true, then this is applied recursively.public Text addText(java.lang.String content, boolean merge)
content - The text content.merge - If true, then if last child exists and is a text,
content is added to this last child.public Text addText(java.lang.String content)
If last child exists and is a text, content is added to this last child.
Otherwise, a text child is created and added to last position.
content - The text content.public java.lang.String getText(java.lang.String def)
This will work when this node has only text and comment children.
If it has element children, the default value is returned.
def - The default value.def.public java.lang.String getText()
This will work when this node has only text and comment children.
If it has element children, null is returned.
null.public boolean getTextAsBoolean(boolean def)
public java.lang.Boolean getTextAsOptionalBoolean(java.lang.Boolean def)
public long getTextAsLong(long def)
public java.lang.Long getTextAsOptionalLong(java.lang.Long def)
public int getTextAsInt(int def)
public java.lang.Integer getTextAsOptionalInt(java.lang.Integer def)
public short getTextAsShort(short def)
public java.lang.Short getTextAsOptionalShort(java.lang.Short def)
public byte getTextAsByte(byte def)
public java.lang.Byte getTextAsOptionalByte(java.lang.Byte def)
public double getTextAsDouble(double def)
public java.lang.Double getTextAsOptionalDouble(java.lang.Double def)
public float getTextAsFloat(float def)
public java.lang.Float getTextAsOptionalFloat(java.lang.Float def)
public <E extends java.lang.Enum<E>> E getTextAsEnum(java.lang.Class<E> enumClass,
E def)
public <E extends java.lang.Enum<E>> E getTextAsOptionalEnum(java.lang.Class<E> enumClass,
E def)
public java.lang.String getElementNamedText(java.lang.String name,
java.lang.String def)
name - The child name.def - The default value.name or def.public java.lang.String getElementNamedText(java.lang.String name)
name - The child name.name or null.public java.lang.String toString()
toString in class AbstractChildpublic static java.util.function.Predicate<Node> named(java.lang.String name)
name - The name.name.public static java.util.function.Predicate<Node> named(java.util.Set<java.lang.String> names)
names - The names.names.public static java.util.function.Predicate<Node> named(java.lang.String... names)
names - The names.names.public static java.util.function.Predicate<Node> namedWithAttribute(java.lang.String name, java.lang.String attributeName, java.lang.String attributeValue)
name - The element name.attributeName - The attribute name.attributeValue - The attribute value.name
with an attribute named attributeName and containing attributeValue.public static java.util.function.Predicate<Node> hasAttribute(java.lang.String attributeName, java.lang.String attributeValue)
attributeName - The attribute name.attributeValue - The attribute value.attributeName and containing attributeValue.public static java.util.function.Predicate<Node> namedIgnoreCase(java.lang.String name)
name - The name.name, ignoring case.Copyright © 2019. All rights reserved.