|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.overview.validator.BasicNodeValidator<I>
net.sf.basedb.util.overview.validator.NameableNodeValidator<DerivedBioAssay>
net.sf.basedb.util.overview.validator.DerivedBioAssayValidator
public class DerivedBioAssayValidator
Validator implementation for derived bioassays. Validation rules:
Validator.MISSING_DERIVEDBIOASSAY
Validator.DENIED_DERIVEDBIOASSAY
Validator.PARENT_EXTRACT_MISMATCH
Validator.INCORRECT_DERIVEDBIOASSAY_TYPE
,
Validator.INCORRECT_PHYSICALBIOASSAY_TYPE
, Validator.INCORRECT_EXTRACT_TYPE
Constructor Summary | |
---|---|
DerivedBioAssayValidator()
|
Method Summary | |
---|---|
static void |
checkDerivedBioAssaySubtype(DbControl dc,
OverviewContext context,
Node childNode,
Node parentNode)
Check the subtype of the derived bioassay that is the parent to a child derived bioassay. |
static void |
checkExtractSubtype(DbControl dc,
OverviewContext context,
Node bioAssayNode,
Node extractNode)
Check the subtype of the extract that is the linked with a derived bioassay. |
static void |
checkPhysicalBioAssaySubtype(DbControl dc,
OverviewContext context,
Node derivedBioAssayNode,
Node physicalBioAssayNode)
Check the subtype of the physical bioassay that is the parent to a derived bioassay. |
protected Fix |
getMissingItemFix(DbControl dc,
Node rawBioAssayNode)
Subclasses should override this method if they have a suggessted fix for a missing item problem. |
void |
postValidate(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
Do nothing. |
boolean |
preMissingItem(DbControl dc,
OverviewContext context,
Node parentNode)
If the parent raw bioassay has a link to an extract, we ignore the missing derived bioassay. |
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 DerivedBioAssayValidator()
Method Detail |
---|
public boolean preMissingItem(DbControl dc, OverviewContext context, Node parentNode)
preMissingItem
in interface NodeValidator<DerivedBioAssay>
preMissingItem
in class BasicNodeValidator<DerivedBioAssay>
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(DbControl dc, Node rawBioAssayNode)
BasicNodeValidator
new Fix("Add item to parent", parentNode.getItem())
getMissingItemFix
in class BasicNodeValidator<DerivedBioAssay>
public void postValidate(DbControl dc, OverviewContext context, Node node, Node parentNode)
BasicNodeValidator
postValidate
in interface NodeValidator<DerivedBioAssay>
postValidate
in class NameableNodeValidator<DerivedBioAssay>
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 static void checkPhysicalBioAssaySubtype(DbControl dc, OverviewContext context, Node derivedBioAssayNode, Node physicalBioAssayNode)
public static void checkDerivedBioAssaySubtype(DbControl dc, OverviewContext context, Node childNode, Node parentNode)
public static void checkExtractSubtype(DbControl dc, OverviewContext context, Node bioAssayNode, Node extractNode)
|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |