java.lang.Object
org.joox.selector.AttributeSpecifier
- All Implemented Interfaces:
Specifier
An implementation of
This implementation will also be used for ID selectors and class selectors.
Specifier
for attributes.
Note:
This implementation will also be used for ID selectors and class selectors.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The type of match to perform for the attribute.Nested classes/interfaces inherited from interface org.joox.selector.Specifier
Specifier.Type
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttributeSpecifier
(String name) Create a new attribute specifier with the specified attribute name.AttributeSpecifier
(String name, String value, AttributeSpecifier.Match match) Create a new attribute specifier with the specified name, value and match type. -
Method Summary
-
Field Details
-
name
The name of the attribute. -
value
The attribute value. -
match
The type of match to perform for the attribute.
-
-
Constructor Details
-
AttributeSpecifier
Create a new attribute specifier with the specified attribute name. This attribute specifier is used to check if the attribute with the specified name exists whatever the value of the attribute.- Parameters:
name
- The name of the attribute.
-
AttributeSpecifier
Create a new attribute specifier with the specified name, value and match type.- Parameters:
name
- The name of the attribute.value
- The attribute value.match
- The type of match to perform for the attribute.
-
-
Method Details
-
getName
Get the name of the attribute.- Returns:
- The name of the attribute.
-
getValue
Get the attribute value.- Returns:
- The attribute value or
null
.
-
getMatch
Get the type of match to perform for the attribute.- Returns:
- The type of match or
null
.
-
getType
Get the specifier type.
-