Class ValidateUploadHook
java.lang.Object
org.openstreetmap.josm.actions.upload.ValidateUploadHook
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckUpload(APIDataSet apiDataSet) Validate the modified data before uploadingprivate static booleandisplayErrorScreen(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, waitMethods inherited from interface org.openstreetmap.josm.actions.upload.UploadHook
modifyChangesetTags
-
Constructor Details
-
ValidateUploadHook
public ValidateUploadHook()
-
-
Method Details
-
checkUpload
Validate the modified data before uploading- Specified by:
checkUploadin interfaceUploadHook- Parameters:
apiDataSet- contains primitives to be uploaded- Returns:
trueif upload should continue, else false
-
displayErrorScreen
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.
-