org.openstreetmap.josm.gui.tagging
Class TaggingPreset.KeyedItem
java.lang.Object
org.openstreetmap.josm.gui.tagging.TaggingPreset.Item
org.openstreetmap.josm.gui.tagging.TaggingPreset.KeyedItem
- Direct Known Subclasses:
- TaggingPreset.Check, TaggingPreset.ComboMultiSelect, TaggingPreset.Key, TaggingPreset.Text
- Enclosing class:
- TaggingPreset
public abstract static class TaggingPreset.KeyedItem
- extends TaggingPreset.Item
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
public java.lang.String key
text
public java.lang.String text
text_context
public java.lang.String text_context
match
public java.lang.String match
TaggingPreset.KeyedItem
public TaggingPreset.KeyedItem()
getDefaultMatch
public abstract TaggingPreset.MatchType getDefaultMatch()
getValues
public abstract java.util.Collection<java.lang.String> getValues()
matches
java.lang.Boolean matches(java.util.Map<java.lang.String,java.lang.String> tags)
- Description copied from class:
TaggingPreset.Item
- Tests whether the tags match this item.
Note that for a match, at least one positive and no negative is required.
- Overrides:
matches
in class TaggingPreset.Item
- Parameters:
tags
- the tags of an OsmPrimitive
- Returns:
true
if matches (positive), null
if neutral, false
if mismatches (negative).
JOSM