Enum SearchCompiler.ExactKeyValue.Mode
- java.lang.Object
-
- java.lang.Enum<SearchCompiler.ExactKeyValue.Mode>
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.ExactKeyValue.Mode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SearchCompiler.ExactKeyValue.Mode>
- Enclosing class:
- SearchCompiler.ExactKeyValue
public static enum SearchCompiler.ExactKeyValue.Mode extends java.lang.Enum<SearchCompiler.ExactKeyValue.Mode>
The mode to use for the comparison
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
Matches everythingANY_KEY
Any key with the specified value will matchANY_KEY_REGEXP
Similar toANY_KEY
, but the value matches a regexANY_VALUE
Any value with the specified key will matchANY_VALUE_REGEXP
Similar toANY_VALUE
, but the key matches a regexEXACT
A key with the specified value will matchEXACT_REGEXP
Both the key and the value matches their respective regexMISSING_KEY
The key does not existMISSING_KEY_REGEXP
No key matching the regex existsNONE
Nothing matches
-
Constructor Summary
Constructors Modifier Constructor Description private
Mode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SearchCompiler.ExactKeyValue.Mode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SearchCompiler.ExactKeyValue.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final SearchCompiler.ExactKeyValue.Mode ANY
Matches everything
-
ANY_KEY
public static final SearchCompiler.ExactKeyValue.Mode ANY_KEY
Any key with the specified value will match
-
ANY_VALUE
public static final SearchCompiler.ExactKeyValue.Mode ANY_VALUE
Any value with the specified key will match
-
EXACT
public static final SearchCompiler.ExactKeyValue.Mode EXACT
A key with the specified value will match
-
NONE
public static final SearchCompiler.ExactKeyValue.Mode NONE
Nothing matches
-
MISSING_KEY
public static final SearchCompiler.ExactKeyValue.Mode MISSING_KEY
The key does not exist
-
ANY_KEY_REGEXP
public static final SearchCompiler.ExactKeyValue.Mode ANY_KEY_REGEXP
Similar toANY_KEY
, but the value matches a regex
-
ANY_VALUE_REGEXP
public static final SearchCompiler.ExactKeyValue.Mode ANY_VALUE_REGEXP
Similar toANY_VALUE
, but the key matches a regex
-
EXACT_REGEXP
public static final SearchCompiler.ExactKeyValue.Mode EXACT_REGEXP
Both the key and the value matches their respective regex
-
MISSING_KEY_REGEXP
public static final SearchCompiler.ExactKeyValue.Mode MISSING_KEY_REGEXP
No key matching the regex exists
-
-
Constructor Detail
-
Mode
private Mode()
-
-
Method Detail
-
values
public static SearchCompiler.ExactKeyValue.Mode[] 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 (SearchCompiler.ExactKeyValue.Mode c : SearchCompiler.ExactKeyValue.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchCompiler.ExactKeyValue.Mode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-