Enum MatcherType
- java.lang.Object
-
- java.lang.Enum<MatcherType>
-
- org.fluentlenium.core.filter.matcher.MatcherType
-
- All Implemented Interfaces:
Serializable
,Comparable<MatcherType>
public enum MatcherType extends Enum<MatcherType>
Matcher types actually actually supported by the framework.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS
Contains.CONTAINS_WORD
Contains word.ENDS_WITH
Ends with.EQUALS
Equal.NOT_CONTAINS
Not contains.NOT_ENDS_WITH
Not ends with.NOT_STARTS_WITH
Not starts with.STARTS_WITH
Starts with.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCssRepresentation()
Return the css representation of the matcherString
getLabel()
Get the label of this matcher typestatic MatcherType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MatcherType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTAINS
public static final MatcherType CONTAINS
Contains.
-
STARTS_WITH
public static final MatcherType STARTS_WITH
Starts with.
-
ENDS_WITH
public static final MatcherType ENDS_WITH
Ends with.
-
CONTAINS_WORD
public static final MatcherType CONTAINS_WORD
Contains word.
-
EQUALS
public static final MatcherType EQUALS
Equal.
-
NOT_CONTAINS
public static final MatcherType NOT_CONTAINS
Not contains.
-
NOT_STARTS_WITH
public static final MatcherType NOT_STARTS_WITH
Not starts with.
-
NOT_ENDS_WITH
public static final MatcherType NOT_ENDS_WITH
Not ends with.
-
-
Method Detail
-
values
public static MatcherType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MatcherType c : MatcherType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatcherType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLabel
public String getLabel()
Get the label of this matcher type- Returns:
- label
-
getCssRepresentation
public String getCssRepresentation()
Return the css representation of the matcher- Returns:
- CSS representation
-
-