public class DefaultImageOperatorValidator extends Object implements IOperatorValidator
OperatorType.IMAGE instances.| Constructor and Description |
|---|
DefaultImageOperatorValidator()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(IWorkPackage wp)
This method is called in order to validate a given
IWorkPackage
for an operator. |
protected boolean |
validateSources(IWorkPackage wp)
This method - as default - checks for a source object at index position 0
of the source list but does not validate the type of the image.
|
public DefaultImageOperatorValidator()
public boolean validate(IWorkPackage wp) throws IllegalArgumentException, Exception
IOperatorValidatorIWorkPackage
for an operator.
Within this method execution rules are declared and evaluated.
One may bypass the validation returning true on every call.
Note That the execution of the operator is not guaranteed to be
finished without uncaught errors!
validate in interface IOperatorValidatorwp - the work packagetrue, if the package is valid for this operatorIllegalArgumentException - if the source or parameters do evaluate the rules to
trueException - if other errors occur during validationIOperatorValidator.validate(at.mug.iqm.api.operator.IWorkPackage),
validateSources(IWorkPackage)protected boolean validateSources(IWorkPackage wp) throws IllegalArgumentException
wp - true if the source vector contains an object at
index 0IllegalArgumentException - if the source vector
IqmDataBox as wrapper, or
OperatorType.IMAGE.
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.