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 ValidatorPrefHelperINSTANCEThe unique instance.static BooleanPropertyPREF_ADD_PARENTSSee #23397 The preferences key for the addition of parent objects for modified objectsstatic java.lang.StringPREF_FILTER_BY_SELECTIONThe preferences key for enabling the permanent filtering of the displayed errors in the tree regarding the current selectionstatic java.lang.StringPREF_IGNORELISTThe preferences key for the ignoreliststatic java.lang.StringPREF_IGNORELIST_FORMATThe preferences key for the ignorelist formatstatic BooleanPropertyPREF_LAYERThe preferences key for error layerstatic BooleanPropertyPREF_OTHERThe preferences for ignored severity otherstatic BooleanPropertyPREF_OTHER_UPLOADThe preferences key for ignored severity other on uploadstatic BooleanPropertyPREF_REMOVE_IRRELEVANTSee #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.StringPREF_SKIP_TESTSThe preferences key for enabled testsstatic java.lang.StringPREF_SKIP_TESTS_BEFORE_UPLOADThe preferences key for enabled tests before uploadstatic BooleanPropertyPREF_UNFURLSee #23519 The preferences key for the automatic unfurl of the validation result windowstatic BooleanPropertyPREF_USE_IGNOREThe preferences key for enabled testsstatic java.lang.StringPREFIXThe 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 voidaddDefault(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:SourcePrefHelperReturns the default sources provided by JOSM core.- Specified by:
getDefaultin 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:SourcePrefHelperSerializes the given source entry as a map.- Overrides:
serializein classSourcePrefHelper- Parameters:
entry- source entry to serialize- Returns:
- map (key=value)
-
-