Class ValidateUploadHook
- java.lang.Object
-
- org.openstreetmap.josm.actions.upload.ValidateUploadHook
-
- All Implemented Interfaces:
UploadHook
public class ValidateUploadHook extends java.lang.Object implements UploadHook
The action that does the validate thing.This action iterates through all active tests and gives them the data, so that each one can test it.
- Since:
- 3669
-
-
Constructor Summary
Constructors Constructor Description ValidateUploadHook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkUpload(APIDataSet apiDataSet)
Validate the modified data before uploadingprivate static boolean
displayErrorScreen(java.util.List<TestError> errors)
Displays a screen where the actions that would be taken are displayed and give the user the possibility to cancel the upload.-
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
-
ValidateUploadHook
public ValidateUploadHook()
-
-
Method Detail
-
checkUpload
public boolean checkUpload(APIDataSet apiDataSet)
Validate the modified data before uploading- Specified by:
checkUpload
in interfaceUploadHook
- Parameters:
apiDataSet
- contains primitives to be uploaded- Returns:
true
if upload should continue, else false
-
displayErrorScreen
private static boolean displayErrorScreen(java.util.List<TestError> errors)
Displays a screen where the actions that would be taken are displayed and give the user the possibility to cancel the upload.- Parameters:
errors
- The errors displayed in the screen- Returns:
true
, if the upload should continue.
false
, if the user requested cancel.
-
-