public class DefaultPlotOperatorValidator extends Object implements IOperatorValidator
OperatorType.PLOT instances.| Constructor and Description |
|---|
DefaultPlotOperatorValidator()
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.
|
public DefaultPlotOperatorValidator()
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 IqmDataBox
object containing a plot at index 0IllegalArgumentException - if the source vector
IqmDataBox as wrapper, or
OperatorType.PLOT.
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.