|
3.2.1: 2012-12-13 | ||||||||
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<PhysicalBioAssay>
net.sf.basedb.util.overview.validator.PhysicalBioAssayValidator
public class PhysicalBioAssayValidator
Validator implementation for physical bioassays. Validation rules:
Validator.MISSING_PHYSICALBIOASSAY
Validator.DENIED_PHYSICALBIOASSAY
Validator.INCORRECT_EXTRACT_TYPE
Constructor Summary | |
---|---|
PhysicalBioAssayValidator()
|
Method Summary | |
---|---|
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 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 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. |
Methods inherited from class net.sf.basedb.util.overview.validator.BasicNodeValidator |
---|
getDeniedItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preMissingItem, preValidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhysicalBioAssayValidator()
Method Detail |
---|
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 List<PhysicalBioAssay> getPhysicalBioAssays(DbControl dc, OverviewContext context, DerivedBioAssay bioAssay)
public static Set<Extract> getAllParentExtracts(DbControl dc, OverviewContext context, PhysicalBioAssay bioAssay)
|
3.2.1: 2012-12-13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |