Class SearchCompiler.ExactKeyValue
java.lang.Object
org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
org.openstreetmap.josm.data.osm.search.SearchCompiler.TaggedMatch
org.openstreetmap.josm.data.osm.search.SearchCompiler.ExactKeyValue
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
Matches objects with the exact given key-value pair.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe mode to use for the comparison -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Patternprivate final SearchCompiler.ExactKeyValue.Modeprivate final Stringprivate final Pattern -
Constructor Summary
ConstructorsConstructorDescriptionExactKeyValue(boolean regexp, boolean caseSensitive, String key, String value) Constructs a newExactKeyValue. -
Method Summary
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.TaggedMatch
compilePattern, matchMethods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
test, validate
-
Field Details
-
key
-
value
-
keyPattern
-
valuePattern
-
mode
-
-
Constructor Details
-
ExactKeyValue
public ExactKeyValue(boolean regexp, boolean caseSensitive, String key, String value) throws SearchParseError Constructs a newExactKeyValue.- Parameters:
regexp- regular expressioncaseSensitive-trueto perform a case-sensitive searchkey- keyvalue- value- Throws:
SearchParseError- if a parse error occurs
-
-
Method Details
-
match
Description copied from class:SearchCompiler.MatchTests whether the tagged object matches this criterion.- Specified by:
matchin classSearchCompiler.TaggedMatch- Parameters:
osm- the tagged object to test- Returns:
- true if the tagged object matches this criterion
-
getKey
-
getValue
-
getMode
-
toString
-
hashCode
-
equals
-