org.openstreetmap.josm.actions.upload
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 give them the data, so that
each one can test it.
Method Summary |
boolean |
checkUpload(APIDataSet apiDataSet)
Validate the modified data before uploading |
private 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 |
serialVersionUID
private static final long serialVersionUID
- Serializable ID
- See Also:
- Constant Field Values
ValidateUploadHook
public ValidateUploadHook()
checkUpload
public boolean checkUpload(APIDataSet apiDataSet)
- Validate the modified data before uploading
- Specified by:
checkUpload
in interface UploadHook
- Parameters:
apiDataSet
- the data to upload
displayErrorScreen
private 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.
JOSM