|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class ArrayDesignValidator
Validator implementation for array designs. Validation rules:
Validator.MISSING_ARRAYDESIGN
Validator.DENIED_ARRAYDESIGN
Validator.NONDEFAULT_ARRAYDESIGN
Validator.NONMATHCING_ARRAYDESIGN
Validator.MULTIPLE_ARRAYDESIGNS
Constructor Summary | |
---|---|
ArrayDesignValidator()
|
Method Summary | |
---|---|
private void |
checkExperimentArrayDesign(OverviewContext context,
Node parentNode,
ArrayDesign design)
Check if an experiment has used more than one array design. |
protected Fix |
getMissingItemFix(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. |
Methods inherited from class net.sf.basedb.util.overview.validator.BasicNodeValidator |
---|
getDeniedItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preValidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayDesignValidator()
Method Detail |
---|
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 item
protected Fix getMissingItemFix(Node parentNode)
getMissingItemFix
in class BasicNodeValidator<ArrayDesign>
private void checkExperimentArrayDesign(OverviewContext context, Node parentNode, ArrayDesign design)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |