Enum Class By.AttributeOperator
- All Implemented Interfaces:
Serializable, Comparable<By.AttributeOperator>, Constable
- Enclosing class:
By
Operator used for attribute selectors.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription[attr*=value]: Represents elements with an attribute name of attr whose value contains at least one occurrence of value within the string.[attr|=value]: Represents elements with an attribute name of attr whose value can be exactly value or can begin with value immediately followed by a hyphen, - (U+002D).[attr~=value]: Represents elements with an attribute name of attr whose value is a whitespace-separated list of words, one of which is exactly value.[attr$=value]: Represents elements with an attribute name of attr whose value is suffixed (followed) by value.[attr^=value]: Represents elements with an attribute name of attr whose value is prefixed (preceded) by value. -
Method Summary
Modifier and TypeMethodDescriptionstatic By.AttributeOperatorReturns the enum constant of this class with the specified name.static By.AttributeOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STARTS_WITH
[attr^=value]: Represents elements with an attribute name of attr whose value is prefixed (preceded) by value. -
ENDS_WITH
[attr$=value]: Represents elements with an attribute name of attr whose value is suffixed (followed) by value. -
CONTAINS
[attr*=value]: Represents elements with an attribute name of attr whose value contains at least one occurrence of value within the string. -
CONTAINS_WORD
[attr~=value]: Represents elements with an attribute name of attr whose value is a whitespace-separated list of words, one of which is exactly value. -
CONTAINS_TOKEN
[attr|=value]: Represents elements with an attribute name of attr whose value can be exactly value or can begin with value immediately followed by a hyphen, - (U+002D). It is often used for language subcode matches.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-