public class ValidatorPrefHelper extends SourcePrefHelper
Modifier and Type | Field and Description |
---|---|
static ValidatorPrefHelper |
INSTANCE
The unique instance.
|
static java.lang.String |
PREF_FILTER_BY_SELECTION
The preferences key for enabling the permanent filtering
of the displayed errors in the tree regarding the current selection
|
static BooleanProperty |
PREF_LAYER
The preferences key for error layer
|
static BooleanProperty |
PREF_OTHER
The preferences for ignored severity other
|
static BooleanProperty |
PREF_OTHER_UPLOAD
The preferences key for ignored severity other on upload
|
static java.lang.String |
PREF_SKIP_TESTS
The preferences key for enabled tests
|
static java.lang.String |
PREF_SKIP_TESTS_BEFORE_UPLOAD
The preferences key for enabled tests before upload
|
static BooleanProperty |
PREF_USE_IGNORE
The preferences key for enabled tests
|
static java.lang.String |
PREFIX
The preferences prefix
|
type
Constructor and Description |
---|
ValidatorPrefHelper()
Constructs a new
PresetPrefHelper . |
Modifier and Type | Method and Description |
---|---|
private void |
addDefault(java.util.List<ExtendedSourceEntry> defaults,
java.lang.String filename,
java.lang.String title,
java.lang.String description) |
SourceEntry |
deserialize(java.util.Map<java.lang.String,java.lang.String> s)
Deserializes the given map as a source entry.
|
java.util.Collection<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 ValidatorPrefHelper INSTANCE
public static final java.lang.String PREFIX
public static final BooleanProperty PREF_LAYER
public static final java.lang.String PREF_SKIP_TESTS
public static final BooleanProperty PREF_USE_IGNORE
public static final java.lang.String PREF_SKIP_TESTS_BEFORE_UPLOAD
public static final BooleanProperty PREF_OTHER_UPLOAD
public static final BooleanProperty PREF_OTHER
public static final java.lang.String PREF_FILTER_BY_SELECTION
public ValidatorPrefHelper()
PresetPrefHelper
.public java.util.Collection<ExtendedSourceEntry> getDefault()
SourcePrefHelper
getDefault
in class SourcePrefHelper
private void addDefault(java.util.List<ExtendedSourceEntry> defaults, java.lang.String filename, java.lang.String title, java.lang.String description)
public java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
SourcePrefHelper
serialize
in class SourcePrefHelper
entry
- source entry to serializepublic SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
SourcePrefHelper
deserialize
in class SourcePrefHelper
s
- map (key=value)