public class SampleValidator extends NameableNodeValidator<Sample>
Validator.MISSING_SAMPLE
Validator.DENIED_SAMPLE
Validator.INCORRECT_SAMPLE_TYPE
Validator.INCORRECT_BIOSOURCE_TYPE
Constructor and Description |
---|
SampleValidator() |
Modifier and Type | Method and Description |
---|---|
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.
|
getDeniedItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preMissingItem, preValidate
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)