- All Implemented Interfaces:
Serializable
,Comparable<Condition.ConditionType>
,java.lang.constant.Constable
- Enclosing interface:
Condition
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis condition checks two conditions in a compound selector.This condition checks for the presence of an attribute (and eventually its value).This condition checks if the value is in a hypen-separated list of values in a specified attribute.This condition checks the beginning of an attribute value.This condition checks for a specified class.This condition checks the end of an attribute value.This condition checks an id attribute.This condition checks the language of the node.This condition checks for a value in a list of space-separated values in an attribute.This condition checks if a node is the only one in the node list.This condition checks if a node is the only one of his type.This condition checks a specified position.This condition checks for a pseudo class.This condition checks for pseudo elements.This condition checks the selector list argument to which a pseudo-class applies.This condition checks a substring of an attribute value. -
Method Summary
Modifier and TypeMethodDescriptionstatic Condition.ConditionType
Returns the enum constant of this class with the specified name.static Condition.ConditionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
This condition checks two conditions in a compound selector.Example:
.part1:lang(fr)
- See Also:
-
ID
This condition checks an id attribute.Example:
#myId
- See Also:
-
CLASS
This condition checks for a specified class.Example:
.example
- See Also:
-
PSEUDO_CLASS
This condition checks for a pseudo class.Example:
:link :visited :hover
- See Also:
-
PSEUDO_ELEMENT
This condition checks for pseudo elements.Example:
::first-line ::first-letter
- See Also:
-
POSITIONAL
This condition checks a specified position.Example:
:first-child
- See Also:
-
ONLY_CHILD
This condition checks if a node is the only one in the node list. -
ONLY_TYPE
This condition checks if a node is the only one of his type. -
LANG
This condition checks the language of the node.Example:
:lang(fr)
- See Also:
-
ATTRIBUTE
This condition checks for the presence of an attribute (and eventually its value).Examples:
[simple] [restart="never"]
- See Also:
-
ONE_OF_ATTRIBUTE
This condition checks for a value in a list of space-separated values in an attribute.Example:
[values~="10"]
- See Also:
-
BEGIN_HYPHEN_ATTRIBUTE
This condition checks if the value is in a hypen-separated list of values in a specified attribute.Example:
[languages|="fr"]
- See Also:
-
BEGINS_ATTRIBUTE
This condition checks the beginning of an attribute value.Example:
[restart^="never"]
- See Also:
-
ENDS_ATTRIBUTE
This condition checks the end of an attribute value.Example:
[restart$="never"]
- See Also:
-
SUBSTRING_ATTRIBUTE
This condition checks a substring of an attribute value.Example:
[restart*="never"]
- See Also:
-
SELECTOR_ARGUMENT
This condition checks the selector list argument to which a pseudo-class applies.Example:
:not(:visited,:hover)
- See Also:
-
-
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
-