static class ValidateAction.ValidationTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private List<TestError> |
errors |
private Collection<OsmPrimitive> |
formerValidatedPrimitives |
private Collection<Test> |
tests |
private Collection<OsmPrimitive> |
validatedPrimitives |
progressMonitor
Constructor and Description |
---|
ValidationTask(Collection<Test> tests,
Collection<OsmPrimitive> validatedPrimitives,
Collection<OsmPrimitive> formerValidatedPrimitives) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
private Collection<Test> tests
private final Collection<OsmPrimitive> validatedPrimitives
private final Collection<OsmPrimitive> formerValidatedPrimitives
private boolean canceled
ValidationTask(Collection<Test> tests, Collection<OsmPrimitive> validatedPrimitives, Collection<OsmPrimitive> formerValidatedPrimitives)
tests
- the tests to runvalidatedPrimitives
- the collection of primitives to validate.formerValidatedPrimitives
- the last collection of primitives being validates. May be null.protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
SAXException
- if a SAX error occursIOException
- if an I/O error occursOsmTransferException
- if a communication error with the OSM server occurs