Enum Class SearchCompiler.ExactKeyValue.Mode
java.lang.Object
java.lang.Enum<SearchCompiler.ExactKeyValue.Mode>
org.openstreetmap.josm.data.osm.search.SearchCompiler.ExactKeyValue.Mode
- All Implemented Interfaces:
Serializable,Comparable<SearchCompiler.ExactKeyValue.Mode>,Constable
- Enclosing class:
- SearchCompiler.ExactKeyValue
public static enum SearchCompiler.ExactKeyValue.Mode
extends Enum<SearchCompiler.ExactKeyValue.Mode>
The mode to use for the comparison
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMatches everythingAny key with the specified value will matchSimilar toANY_KEY, but the value matches a regexAny value with the specified key will matchSimilar toANY_VALUE, but the key matches a regexA key with the specified value will matchBoth the key and the value matches their respective regexThe key does not existNo key matching the regex existsNothing matches -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SearchCompiler.ExactKeyValue.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
Matches everything -
ANY_KEY
Any key with the specified value will match -
ANY_VALUE
Any value with the specified key will match -
EXACT
A key with the specified value will match -
NONE
Nothing matches -
MISSING_KEY
The key does not exist -
ANY_KEY_REGEXP
Similar toANY_KEY, but the value matches a regex -
ANY_VALUE_REGEXP
Similar toANY_VALUE, but the key matches a regex -
EXACT_REGEXP
Both the key and the value matches their respective regex -
MISSING_KEY_REGEXP
No key matching the regex exists
-
-
Constructor Details
-
Mode
private Mode()
-
-
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
-