Enum Constant and Description |
---|
DASH
Represents an element with the att attribute, its value either being exactly
"val" or beginning with "val" immediately followed by "-"
|
EQUALS
Represents an element with the att attribute whose value is exactly "val".
|
INCLUDES
Represents an element with the att attribute whose value is a whitespace-separated list of words,
one of which is exactly "val".
|
PREFIX
Represents an element with the att attribute whose value begins with the prefix "val".
|
SUBSTRING
Represents an element with the att attribute whose value contains at least one instance of the substring "val".
|
SUFFIX
Represents an element with the att attribute whose value ends with the suffix "val".
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
compare(java.lang.String attr,
java.lang.String val)
Compares attr and val values.
|
java.lang.String |
getSign()
Returns match sign.
|
static Match |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Match |
valueOfFirstChar(char firstChar)
Resolves match type from the first character of the sign.
|
static Match |
valueOfSign(java.lang.String sign)
Resolves match type from the sign.
|
static Match[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Match EQUALS
public static final Match INCLUDES
public static final Match DASH
public static final Match PREFIX
public static final Match SUFFIX
public static final Match SUBSTRING
public static Match[] values()
for (Match c : Match.values()) System.out.println(c);
public static Match 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 nullpublic java.lang.String getSign()
public abstract boolean compare(java.lang.String attr, java.lang.String val)
public static Match valueOfSign(java.lang.String sign)
public static Match valueOfFirstChar(char firstChar)
Copyright © 2003-present Jodd Team