public enum NodeNameMatchers extends Enum<NodeNameMatchers> implements NodeMatcher<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 and 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 and Description | 
|---|---|
static NodeNameMatchers | 
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.