public class ArrayDesignValidator extends NameableNodeValidator<ArrayDesign>
Validator.MISSING_ARRAYDESIGN
Validator.DENIED_ARRAYDESIGN
Validator.NONDEFAULT_ARRAYDESIGN
Validator.NONMATHCING_ARRAYDESIGN
Validator.MULTIPLE_ARRAYDESIGNS
Constructor and Description |
---|
ArrayDesignValidator() |
Modifier and Type | Method and Description |
---|---|
private void |
checkExperimentArrayDesign(DbControl dc,
OverviewContext context,
Node parentNode,
ArrayDesign design)
Check if an experiment has used more than one array design.
|
protected Fix |
getMissingItemFix(DbControl dc,
Node parentNode)
The suggested fix is to add an array design to the
raw bioassay.
|
void |
postValidate(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
Do nothing.
|
boolean |
preMissingItem(DbControl dc,
OverviewContext context,
Node parentNode)
Submits the
BasicNodeValidator.ruleMissing validator to the context as a failure
unless it is null. |
getDeniedItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preValidate
public void postValidate(DbControl dc, OverviewContext context, Node node, Node parentNode)
BasicNodeValidator
postValidate
in interface NodeValidator<ArrayDesign>
postValidate
in class NameableNodeValidator<ArrayDesign>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextnode
- The node object that represents itemparentNode
- The parent node that is linked with the itempublic boolean preMissingItem(DbControl dc, OverviewContext context, Node parentNode)
BasicNodeValidator
BasicNodeValidator.ruleMissing
validator to the context as a failure
unless it is null.preMissingItem
in interface NodeValidator<ArrayDesign>
preMissingItem
in class BasicNodeValidator<ArrayDesign>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextparentNode
- The parent node that is missing the itemprotected Fix getMissingItemFix(DbControl dc, Node parentNode)
getMissingItemFix
in class BasicNodeValidator<ArrayDesign>
private void checkExperimentArrayDesign(DbControl dc, OverviewContext context, Node parentNode, ArrayDesign design)