public class DerivedBioAssayValidator extends NameableNodeValidator<DerivedBioAssay>
Validator.MISSING_DERIVEDBIOASSAY
Validator.DENIED_DERIVEDBIOASSAY
Validator.PARENT_EXTRACT_MISMATCH
Validator.INCORRECT_DERIVEDBIOASSAY_TYPE
,
Validator.INCORRECT_PHYSICALBIOASSAY_TYPE
, Validator.INCORRECT_EXTRACT_TYPE
Constructor and Description |
---|
DerivedBioAssayValidator() |
Modifier and Type | Method and Description |
---|---|
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.
|
getDeniedItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preValidate
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 itemprotected 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)