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

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

public static class SearchCompiler.ExactKeyValue
extends SearchCompiler.Match

Matches objects with the exact given key-value pair.


Nested Class Summary
private static class SearchCompiler.ExactKeyValue.Mode
           
 
Field Summary
private  java.lang.String key
           
private  java.util.regex.Pattern keyPattern
           
private  SearchCompiler.ExactKeyValue.Mode mode
           
private  java.lang.String value
           
private  java.util.regex.Pattern valuePattern
           
 
Constructor Summary
SearchCompiler.ExactKeyValue(boolean regexp, java.lang.String key, java.lang.String value)
           
 
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

value

private final java.lang.String value

keyPattern

private final java.util.regex.Pattern keyPattern

valuePattern

private final java.util.regex.Pattern valuePattern

mode

private final SearchCompiler.ExactKeyValue.Mode mode
Constructor Detail

SearchCompiler.ExactKeyValue

public SearchCompiler.ExactKeyValue(boolean regexp,
                                    java.lang.String key,
                                    java.lang.String value)
                             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