java.io.Serializable, java.lang.Comparable<NodeNameMatchers>, NodeMatcher<java.lang.String>public enum NodeNameMatchers extends java.lang.Enum<NodeNameMatchers> implements NodeMatcher<java.lang.String>
An enumeration class with several pre-defined NodeMatcher
implementations based on node names.
Filtering nodes by their name is a typical use case. Therefore, some default implementations for typical filter algorithms are already provided. They are available as constants of this class. Because the algorithms are state-less these instances can be shared and accessed concurrently.
| Enum Constant | Description |
|---|---|
EQUALS |
A matcher for exact node name matches.
|
EQUALS_IGNORE_CASE |
A matcher for matches on node names which ignores case.
|
| Modifier and Type | Method | Description |
|---|---|---|
static NodeNameMatchers |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static NodeNameMatchers[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfmatchespublic static final NodeNameMatchers EQUALS
public static final NodeNameMatchers EQUALS_IGNORE_CASE
node, NODE, or NodE are all the same.public static NodeNameMatchers[] values()
for (NodeNameMatchers c : NodeNameMatchers.values()) System.out.println(c);
public static NodeNameMatchers valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2001–2018. All rights reserved.