Class DiscardTagsHook
- java.lang.Object
-
- org.openstreetmap.josm.actions.upload.DiscardTagsHook
-
- All Implemented Interfaces:
UploadHook
public class DiscardTagsHook extends Object implements UploadHook
Removes discardable tags such as created_by from all modified objects before upload
-
-
Constructor Summary
Constructors Constructor Description DiscardTagsHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkUpload(APIDataSet apiDataSet)
Check, and/or change, the data to be uploaded.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.actions.upload.UploadHook
modifyChangesetTags
-
-
-
-
Constructor Detail
-
DiscardTagsHook
public DiscardTagsHook()
-
-
Method Detail
-
checkUpload
public boolean checkUpload(APIDataSet apiDataSet)
Description copied from interface:UploadHook
Check, and/or change, the data to be uploaded. Default implementation is to approve the upload.- Specified by:
checkUpload
in interfaceUploadHook
- Parameters:
apiDataSet
- the data to upload, modify this to change the data.- Returns:
true
if upload is possible,false
to block the upload.
-
-