public class BioSourceValidator extends NameableNodeValidator<BioSource>
Validator.MISSING_BIOSOURCE
Validator.DENIED_BIOSOURCE
Constructor and Description |
---|
BioSourceValidator() |
Modifier and Type | Method and Description |
---|---|
protected Fix |
getMissingItemFix(DbControl dc,
Node sampleNode)
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<BioSource>
postValidate
in class NameableNodeValidator<BioSource>
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 sampleNode)
BasicNodeValidator
new Fix("Add item to parent", parentNode.getItem())
getMissingItemFix
in class BasicNodeValidator<BioSource>