Class ArrayDesignValidator
java.lang.Object
net.sf.basedb.util.overview.validator.BasicNodeValidator<I>
net.sf.basedb.util.overview.validator.NameableNodeValidator<ArrayDesign>
net.sf.basedb.util.overview.validator.ArrayDesignValidator
- All Implemented Interfaces:
NodeValidator<ArrayDesign>
Validator implementation for array designs. Validation rules:
- Missing item:
Validator.MISSING_ARRAYDESIGN
- Access denied:
Validator.DENIED_ARRAYDESIGN
- Non-default array design:
Validator.NONDEFAULT_ARRAYDESIGN
- Non-matching array design:
Validator.NONMATHCING_ARRAYDESIGN
- Use of multiple array design in an experiment:
Validator.MULTIPLE_ARRAYDESIGNS
- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2015-10-02 11:40:02 +0200 (fr, 02 okt 2015) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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 theBasicNodeValidator.ruleMissing
validator to the context as a failure unless it is null.Methods inherited from class net.sf.basedb.util.overview.validator.BasicNodeValidator
getDeniedItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preValidate
-
Constructor Details
-
ArrayDesignValidator
public ArrayDesignValidator()
-
-
Method Details
-
postValidate
Description copied from class:BasicNodeValidator
Do nothing. Subclasses should override this method if they need more validation for an existing and accessible item.- Specified by:
postValidate
in interfaceNodeValidator<ArrayDesign>
- Overrides:
postValidate
in classNameableNodeValidator<ArrayDesign>
- Parameters:
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 item
-
preMissingItem
Description copied from class:BasicNodeValidator
Submits theBasicNodeValidator.ruleMissing
validator to the context as a failure unless it is null.- Specified by:
preMissingItem
in interfaceNodeValidator<ArrayDesign>
- Overrides:
preMissingItem
in classBasicNodeValidator<ArrayDesign>
- Parameters:
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextparentNode
- The parent node that is missing the item- Returns:
- Always false
-
getMissingItemFix
The suggested fix is to add an array design to the raw bioassay.- Specified by:
getMissingItemFix
in classBasicNodeValidator<ArrayDesign>
-
checkExperimentArrayDesign
private void checkExperimentArrayDesign(DbControl dc, OverviewContext context, Node parentNode, ArrayDesign design) Check if an experiment has used more than one array design. The context cache keep a Set with all arraydesign we have seen so for for a given experiment (including null)
-