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

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

private static class SearchCompiler.BooleanMatch
extends SearchCompiler.Match

Matches if the value of the corresponding key is ''yes'', ''true'', ''1'' or ''on''.


Field Summary
private  boolean defaultValue
           
private  java.lang.String key
           
 
Constructor Summary
SearchCompiler.BooleanMatch(java.lang.String key, boolean defaultValue)
           
 
Method Summary
 boolean match(OsmPrimitive osm)
           
 
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, toString, wait, wait, wait
 

Field Detail

key

private final java.lang.String key

defaultValue

private final boolean defaultValue
Constructor Detail

SearchCompiler.BooleanMatch

public SearchCompiler.BooleanMatch(java.lang.String key,
                                   boolean defaultValue)
Method Detail

match

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


JOSM