public static class TaggingPresetPreference.PresetPrefHelper extends SourceEditor.SourcePrefHelper
Modifier and Type | Field and Description |
---|---|
static TaggingPresetPreference.PresetPrefHelper |
INSTANCE
The unique instance.
|
Constructor and Description |
---|
PresetPrefHelper()
Constructs a new
PresetPrefHelper . |
Modifier and Type | Method and Description |
---|---|
SourceEntry |
deserialize(java.util.Map<java.lang.String,java.lang.String> s)
Deserializes the given map as a source entry.
|
java.util.Collection<SourceEditor.ExtendedSourceEntry> |
getDefault()
Returns the default sources provided by JOSM core.
|
java.util.Map<java.lang.String,java.lang.String> |
serialize(SourceEntry entry)
Serializes the given source entry as a map.
|
get, getActiveUrls, put
public static final TaggingPresetPreference.PresetPrefHelper INSTANCE
public PresetPrefHelper()
PresetPrefHelper
.public java.util.Collection<SourceEditor.ExtendedSourceEntry> getDefault()
SourceEditor.SourcePrefHelper
getDefault
in class SourceEditor.SourcePrefHelper
public java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
SourceEditor.SourcePrefHelper
serialize
in class SourceEditor.SourcePrefHelper
entry
- source entry to serializepublic SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
SourceEditor.SourcePrefHelper
deserialize
in class SourceEditor.SourcePrefHelper
s
- map (key=value)