Class FixDataHook
java.lang.Object
org.openstreetmap.josm.actions.upload.FixDataHook
- All Implemented Interfaces:
UploadHook
Fixes defective data entries for all modified objects before upload
- Since:
- 5621
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCommon set of commands for data fixingstatic classData fix to cleanup wrong spelled keysstatic classData fix to remove spaces at begin or end of tagsstatic classData fix to cleanup wrong spelled tags -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FixDataHook.FixData>List of checks to run on dataprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckUpload(APIDataSet apiDataSet) Checks the upload for deprecated or wrong tags.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.actions.upload.UploadHook
modifyChangesetTags
-
Field Details
-
ONEWAY
- See Also:
-
deprecated
List of checks to run on data
-
-
Constructor Details
-
FixDataHook
public FixDataHook()Constructor for data initialization
-
-
Method Details
-
checkUpload
Checks the upload for deprecated or wrong tags.- Specified by:
checkUploadin interfaceUploadHook- Parameters:
apiDataSet- the data to upload- Returns:
trueif upload is possible,falseto block the upload.
-