Class SearchCompiler.Preset
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Preset
-
- All Implemented Interfaces:
Predicate<OsmPrimitive>
- Enclosing class:
- SearchCompiler
private static class SearchCompiler.Preset extends SearchCompiler.Match
Matches presets.- Since:
- 12464
-
-
Field Summary
Fields Modifier and Type Field Description private List<TaggingPreset>
presets
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
boolean
match(OsmPrimitive osm)
Tests whether the primitive matches this criterion.private static boolean
presetNameMatch(String name, TaggingPreset preset, boolean matchStrictly)
-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
-
-
-
Field Detail
-
presets
private final List<TaggingPreset> presets
-
-
Constructor Detail
-
Preset
Preset(String presetName) throws SearchParseError
- Throws:
SearchParseError
-
-
Method Detail
-
match
public boolean match(OsmPrimitive osm)
Description copied from class:SearchCompiler.Match
Tests whether the primitive matches this criterion.- Specified by:
match
in classSearchCompiler.Match
- Parameters:
osm
- the primitive to test- Returns:
- true if the primitive matches this criterion
-
presetNameMatch
private static boolean presetNameMatch(String name, TaggingPreset preset, boolean matchStrictly)
-
-