org.openstreetmap.josm.gui.tagging
Class TaggingPreset.KeyedItem

java.lang.Object
  extended by org.openstreetmap.josm.gui.tagging.TaggingPreset.Item
      extended by 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


Field Summary
 java.lang.String key
           
 java.lang.String match
           
 java.lang.String text
           
 java.lang.String text_context
           
 
Constructor Summary
TaggingPreset.KeyedItem()
           
 
Method Summary
abstract  TaggingPreset.MatchType getDefaultMatch()
           
abstract  java.util.Collection<java.lang.String> getValues()
           
(package private)  java.lang.Boolean matches(java.util.Map<java.lang.String,java.lang.String> tags)
          Tests whether the tags match this item.
 
Methods inherited from class org.openstreetmap.josm.gui.tagging.TaggingPreset.Item
addCommands, addToPanel, initAutoCompletionField, requestFocusInWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TaggingPreset.KeyedItem

public TaggingPreset.KeyedItem()
Method Detail

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