public class PhysicalBioAssayValidator extends NameableNodeValidator<PhysicalBioAssay>
Validator.MISSING_PHYSICALBIOASSAY
Validator.DENIED_PHYSICALBIOASSAY
Validator.INCORRECT_EXTRACT_TYPE
Constructor and Description |
---|
PhysicalBioAssayValidator() |
Modifier and Type | Method and Description |
---|---|
static void |
checkExtractSubtype(DbControl dc,
OverviewContext context,
Node bioAssayNode,
Node extractNode)
Check the subtype of the extract that is the parent to a physical bioassay.
|
static java.util.Set<Extract> |
getAllParentExtracts(DbControl dc,
OverviewContext context,
PhysicalBioAssay bioAssay)
Get all parent extracts that are associated with the given physical bioassay.
|
protected Fix |
getMissingItemFix(DbControl dc,
Node parentNode)
Subclasses should override this method if they have a suggessted fix
for a missing item problem.
|
static java.util.List<PhysicalBioAssay> |
getPhysicalBioAssays(DbControl dc,
OverviewContext context,
DerivedBioAssay bioAssay)
Get all physical bioassays that are parents to the given derived bioassay.
|
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<PhysicalBioAssay>
postValidate
in class NameableNodeValidator<PhysicalBioAssay>
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 parentNode)
BasicNodeValidator
new Fix("Add item to parent", parentNode.getItem())
getMissingItemFix
in class BasicNodeValidator<PhysicalBioAssay>
public static void checkExtractSubtype(DbControl dc, OverviewContext context, Node bioAssayNode, Node extractNode)
public static java.util.List<PhysicalBioAssay> getPhysicalBioAssays(DbControl dc, OverviewContext context, DerivedBioAssay bioAssay)
public static java.util.Set<Extract> getAllParentExtracts(DbControl dc, OverviewContext context, PhysicalBioAssay bioAssay)