Class ValidatorPrefHelper
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.sources.SourcePrefHelper
-
- org.openstreetmap.josm.data.preferences.sources.ValidatorPrefHelper
-
public class ValidatorPrefHelper extends SourcePrefHelper
Helper class for validator tag checker rules preferences.- Since:
- 12649 (extracted from gui.preferences package)
-
-
Field Summary
Fields Modifier and Type Field Description static ValidatorPrefHelper
INSTANCE
The unique instance.static BooleanProperty
PREF_ADD_PARENTS
See #23397 The preferences key for the addition of parent objects for modified objectsstatic 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 selectionstatic java.lang.String
PREF_IGNORELIST
The preferences key for the ignoreliststatic java.lang.String
PREF_IGNORELIST_FORMAT
The preferences key for the ignorelist formatstatic BooleanProperty
PREF_LAYER
The preferences key for error layerstatic BooleanProperty
PREF_OTHER
The preferences for ignored severity otherstatic BooleanProperty
PREF_OTHER_UPLOAD
The preferences key for ignored severity other on uploadstatic BooleanProperty
PREF_REMOVE_IRRELEVANT
See #23397 The preferences key for the deletion of results which do not belong to the selection or the parents of modified objects.static java.lang.String
PREF_SKIP_TESTS
The preferences key for enabled testsstatic java.lang.String
PREF_SKIP_TESTS_BEFORE_UPLOAD
The preferences key for enabled tests before uploadstatic BooleanProperty
PREF_UNFURL
See #23519 The preferences key for the automatic unfurl of the validation result windowstatic BooleanProperty
PREF_USE_IGNORE
The preferences key for enabled testsstatic java.lang.String
PREFIX
The preferences prefix-
Fields inherited from class org.openstreetmap.josm.data.preferences.sources.SourcePrefHelper
type
-
-
Constructor Summary
Constructors Constructor Description ValidatorPrefHelper()
Constructs a newPresetPrefHelper
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addDefault(java.util.List<ExtendedSourceEntry> defaults, java.lang.String filename, java.lang.String title, java.lang.String description)
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.-
Methods inherited from class org.openstreetmap.josm.data.preferences.sources.SourcePrefHelper
deserialize, get, getActiveUrls, put
-
-
-
-
Field Detail
-
INSTANCE
public static final ValidatorPrefHelper INSTANCE
The unique instance.
-
PREFIX
public static final java.lang.String PREFIX
The preferences prefix- See Also:
- Constant Field Values
-
PREF_LAYER
public static final BooleanProperty PREF_LAYER
The preferences key for error layer
-
PREF_SKIP_TESTS
public static final java.lang.String PREF_SKIP_TESTS
The preferences key for enabled tests- See Also:
- Constant Field Values
-
PREF_USE_IGNORE
public static final BooleanProperty PREF_USE_IGNORE
The preferences key for enabled tests
-
PREF_SKIP_TESTS_BEFORE_UPLOAD
public static final java.lang.String PREF_SKIP_TESTS_BEFORE_UPLOAD
The preferences key for enabled tests before upload- See Also:
- Constant Field Values
-
PREF_OTHER_UPLOAD
public static final BooleanProperty PREF_OTHER_UPLOAD
The preferences key for ignored severity other on upload
-
PREF_OTHER
public static final BooleanProperty PREF_OTHER
The preferences for ignored severity other
-
PREF_IGNORELIST
public static final java.lang.String PREF_IGNORELIST
The preferences key for the ignorelist- See Also:
- Constant Field Values
-
PREF_IGNORELIST_FORMAT
public static final java.lang.String PREF_IGNORELIST_FORMAT
The preferences key for the ignorelist format- See Also:
- Constant Field Values
-
PREF_FILTER_BY_SELECTION
public static final 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- See Also:
- Constant Field Values
-
PREF_ADD_PARENTS
public static final BooleanProperty PREF_ADD_PARENTS
See #23397 The preferences key for the addition of parent objects for modified objects
-
PREF_REMOVE_IRRELEVANT
public static final BooleanProperty PREF_REMOVE_IRRELEVANT
See #23397 The preferences key for the deletion of results which do not belong to the selection or the parents of modified objects.
-
PREF_UNFURL
public static final BooleanProperty PREF_UNFURL
See #23519 The preferences key for the automatic unfurl of the validation result window
-
-
Constructor Detail
-
ValidatorPrefHelper
public ValidatorPrefHelper()
Constructs a newPresetPrefHelper
.
-
-
Method Detail
-
getDefault
public java.util.Collection<ExtendedSourceEntry> getDefault()
Description copied from class:SourcePrefHelper
Returns the default sources provided by JOSM core.- Specified by:
getDefault
in classSourcePrefHelper
- Returns:
- the default sources provided by JOSM core
-
addDefault
private void addDefault(java.util.List<ExtendedSourceEntry> defaults, java.lang.String filename, java.lang.String title, java.lang.String description)
-
serialize
public java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
Description copied from class:SourcePrefHelper
Serializes the given source entry as a map.- Overrides:
serialize
in classSourcePrefHelper
- Parameters:
entry
- source entry to serialize- Returns:
- map (key=value)
-
-