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