|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Match>
jodd.lagarto.csselly.selector.Match
public enum Match
Attribute relation matcher.
| Enum Constant Summary | |
|---|---|
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". |
|
| Method Summary | |
|---|---|
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're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
public static final 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 namepublic 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||