org.openstreetmap.josm.actions.search
Class SearchCompiler.KeyValue

java.lang.Object
  extended by org.openstreetmap.josm.actions.search.SearchCompiler.Match
      extended by org.openstreetmap.josm.actions.search.SearchCompiler.KeyValue
Enclosing class:
SearchCompiler

private static class SearchCompiler.KeyValue
extends SearchCompiler.Match

Matches objects with the given key-value pair.


Field Summary
private  boolean caseSensitive
           
private  java.lang.String key
           
private  java.util.regex.Pattern keyPattern
           
private  java.lang.String value
           
private  java.util.regex.Pattern valuePattern
           
 
Constructor Summary
SearchCompiler.KeyValue(java.lang.String key, java.lang.String value, boolean regexSearch, boolean caseSensitive)
           
 
Method Summary
 boolean match(OsmPrimitive osm)
           
 java.lang.String toString()
           
 
Methods inherited from class org.openstreetmap.josm.actions.search.SearchCompiler.Match
existsMatch, forallMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

private final java.lang.String key

keyPattern

private final java.util.regex.Pattern keyPattern

value

private final java.lang.String value

valuePattern

private final java.util.regex.Pattern valuePattern

caseSensitive

private final boolean caseSensitive
Constructor Detail

SearchCompiler.KeyValue

public SearchCompiler.KeyValue(java.lang.String key,
                               java.lang.String value,
                               boolean regexSearch,
                               boolean caseSensitive)
                        throws SearchCompiler.ParseError
Throws:
SearchCompiler.ParseError
Method Detail

match

public boolean match(OsmPrimitive osm)
Specified by:
match in class SearchCompiler.Match

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


JOSM