public abstract static class TaggingPresetItems.KeyedItem extends TaggingPresetItem
Modifier and Type | Field and Description |
---|---|
String |
key |
String |
match |
String |
text
The text to display
|
String |
text_context
The context used for translating
text |
Constructor and Description |
---|
TaggingPresetItems.KeyedItem() |
Modifier and Type | Method and Description |
---|---|
abstract TaggingPresetItems.MatchType |
getDefaultMatch() |
abstract Collection<String> |
getValues() |
(package private) Boolean |
matches(Map<String,String> tags)
Tests whether the tags match this item.
|
String |
toString() |
addCommands, addToPanel, initAutoCompletionField, initAutoCompletionField, requestFocusInWindow
public String text_context
text
public TaggingPresetItems.KeyedItem()
public abstract TaggingPresetItems.MatchType getDefaultMatch()
public abstract Collection<String> getValues()
Boolean matches(Map<String,String> tags)
TaggingPresetItem
matches
in class TaggingPresetItem
tags
- the tags of an OsmPrimitive
true
if matches (positive), null
if neutral, false
if mismatches (negative).