public abstract class ADFValidateHandler extends AbstractHandler implements ValidateHandler<ADF>
IDF
to some external output resource.listeners
Constructor and Description |
---|
ADFValidateHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canValidate(Object data)
Determine whether this handler can validate the supplied data.
|
protected abstract boolean |
canValidateData(ADF adf)
Performs specific checks on the ADF to determine if this handler can validate it.
|
void |
validate(ADF data)
Invoke this validate handler.
|
protected abstract void |
validateData(ADF data)
Performs the unit of work to validate the data.
|
accept, addListener, fireHandlingFailedEvent, fireHandlingStartedEvent, fireHandlingSucceededEvent, getListeners, getLog, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, addListener, getListeners, removeListener
public boolean canValidate(Object data)
ValidateHandler
canValidate
in interface ValidateHandler<ADF>
data
- the data that will be validatedpublic void validate(ADF data) throws ValidateException
validateData(uk.ac.ebi.arrayexpress2.magetab.datamodel.ADF)
. This method itself
governs the update of progress tracking and status information.validate
in interface ValidateHandler<ADF>
data
- the data object to be validatedValidateException
- if the handler failed to validate data from it's sourceprotected abstract boolean canValidateData(ADF adf)
canValidate(Object)
in that it is typed to the ADF and not any object - canValidate(Object)
handles
type checking at the abstract level.adf
- the ADF to checkprotected abstract void validateData(ADF data) throws ValidateException
ValidateException
- if there was an error validating the dataCopyright © 2014. All rights reserved.