|
3.0.2: 2012-01-25 | ||||||||
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<Sample>
net.sf.basedb.util.overview.validator.SampleValidator
public class SampleValidator
Validator implementation for sample. Validation rules:
Validator.MISSING_SAMPLE
Validator.DENIED_SAMPLE
Validator.INCORRECT_SAMPLE_TYPE
Validator.INCORRECT_BIOSOURCE_TYPE
Constructor Summary | |
---|---|
SampleValidator()
|
Method Summary | |
---|---|
static void |
checkParentBioSourceSubtype(DbControl dc,
OverviewContext context,
Node sampleNode,
Node bioSourceNode)
Check the subtype of the biosurce that is the parent to a sample. |
static void |
checkParentSampleSubtype(DbControl dc,
OverviewContext context,
Node childNode,
Node parentNode)
Check the subtype of the sample that is the parent to another sample. |
protected Fix |
getMissingItemFix(DbControl dc,
Node parentNode)
The suggested fix is to add a parent sample to the extract or one or more samples to the pooled sample. |
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 SampleValidator()
Method Detail |
---|
public void postValidate(DbControl dc, OverviewContext context, Node node, Node parentNode)
BasicNodeValidator
postValidate
in interface NodeValidator<Sample>
postValidate
in class NameableNodeValidator<Sample>
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)
getMissingItemFix
in class BasicNodeValidator<Sample>
public static void checkParentBioSourceSubtype(DbControl dc, OverviewContext context, Node sampleNode, Node bioSourceNode)
public static void checkParentSampleSubtype(DbControl dc, OverviewContext context, Node childNode, Node parentNode)
|
3.0.2: 2012-01-25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |