public class BioPlateValidator extends NameableNodeValidator<BioPlate>
Validator.MISSING_BIOPLATE
Validator.DENIED_BIOPLATE
Constructor and Description |
---|
BioPlateValidator() |
Modifier and Type | Method and Description |
---|---|
static void |
checkBioMaterialInWell(DbControl dc,
OverviewContext context,
Node plateNode,
Node bioMaterialNode)
Check that the main type and subtype of the biomaterial is matching the
requirements of the bioplate type.
|
protected Fix |
getMissingItemFix(DbControl dc,
Node bioMaterialNode)
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.
|
getDeniedItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preMissingItem, preValidate
public void postValidate(DbControl dc, OverviewContext context, Node node, Node parentNode)
BasicNodeValidator
postValidate
in interface NodeValidator<BioPlate>
postValidate
in class NameableNodeValidator<BioPlate>
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 itemprotected Fix getMissingItemFix(DbControl dc, Node bioMaterialNode)
BasicNodeValidator
new Fix("Add item to parent", parentNode.getItem())
getMissingItemFix
in class BasicNodeValidator<BioPlate>
public static void checkBioMaterialInWell(DbControl dc, OverviewContext context, Node plateNode, Node bioMaterialNode)