Enum ConditionFactory.KeyMatchType
- java.lang.Object
-
- java.lang.Enum<ConditionFactory.KeyMatchType>
-
- org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyMatchType
-
- All Implemented Interfaces:
Serializable
,Comparable<ConditionFactory.KeyMatchType>
- Enclosing class:
- ConditionFactory
public static enum ConditionFactory.KeyMatchType extends Enum<ConditionFactory.KeyMatchType>
This defines howConditionFactory.KeyCondition
matches a given key.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY_CONTAINS
The key needs to contain the given label as substring.ANY_ENDS_WITH
The key needs to end with the given label.ANY_STARTS_WITH
The key needs to start with the given label.EQ
The key needs to be equal to the given label.FALSE
The key needs to have a false value (no, ...)REGEX
The key needs to match the given regular expression.TRUE
The key needs to have a true value (yes, ...)
-
Constructor Summary
Constructors Modifier Constructor Description private
KeyMatchType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConditionFactory.KeyMatchType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConditionFactory.KeyMatchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQ
public static final ConditionFactory.KeyMatchType EQ
The key needs to be equal to the given label.
-
TRUE
public static final ConditionFactory.KeyMatchType TRUE
The key needs to have a true value (yes, ...)- See Also:
OsmUtils.isTrue(String)
-
FALSE
public static final ConditionFactory.KeyMatchType FALSE
The key needs to have a false value (no, ...)- See Also:
OsmUtils.isFalse(String)
-
REGEX
public static final ConditionFactory.KeyMatchType REGEX
The key needs to match the given regular expression.
-
ANY_CONTAINS
public static final ConditionFactory.KeyMatchType ANY_CONTAINS
The key needs to contain the given label as substring.
-
ANY_STARTS_WITH
public static final ConditionFactory.KeyMatchType ANY_STARTS_WITH
The key needs to start with the given label.
-
ANY_ENDS_WITH
public static final ConditionFactory.KeyMatchType ANY_ENDS_WITH
The key needs to end with the given label.
-
-
Constructor Detail
-
KeyMatchType
private KeyMatchType()
-
-
Method Detail
-
values
public static ConditionFactory.KeyMatchType[] 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 (ConditionFactory.KeyMatchType c : ConditionFactory.KeyMatchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConditionFactory.KeyMatchType 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
-
-