net.sf.basedb.util.overview.validator
Class LabeledExtractValidator
java.lang.Object
net.sf.basedb.util.overview.validator.BasicNodeValidator<I>
net.sf.basedb.util.overview.validator.NameableNodeValidator<LabeledExtract>
net.sf.basedb.util.overview.validator.LabeledExtractValidator
- All Implemented Interfaces:
- NodeValidator<LabeledExtract>
public class LabeledExtractValidator
- extends NameableNodeValidator<LabeledExtract>
Validator implementation for labeled extracts. Validation rules:
- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2010-11-22 09:02:13 +0100 (Mon, 22 Nov 2010) $
Method Summary |
protected Fix |
getMissingItemFix(Node parentNode)
The suggested fix is to add a source labeled extracts to the
either the hybridization or the pooled labeled extract. |
void |
postValidate(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
Do nothing. |
void |
postValidateFolder(DbControl dc,
OverviewContext context,
Node folderNode,
Node parentNode)
Do nothing. |
private void |
validateLabeledExtractOnHyb(DbControl dc,
OverviewContext context,
Node extractNode,
Node hybNode)
|
private void |
validatePooledLabeledExtract(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabeledExtractValidator
public LabeledExtractValidator()
postValidate
public void postValidate(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
- Description copied from class:
BasicNodeValidator
- Do nothing. Subclasses should override this method if they need more validation for an
existing and accessible item.
- Specified by:
postValidate
in interface NodeValidator<LabeledExtract>
- Overrides:
postValidate
in class NameableNodeValidator<LabeledExtract>
- Parameters:
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 item
postValidateFolder
public void postValidateFolder(DbControl dc,
OverviewContext context,
Node folderNode,
Node parentNode)
- Description copied from class:
BasicNodeValidator
- Do nothing. Subclasses should override this method if they need to validate all items
inside a folder-type node.
- Specified by:
postValidateFolder
in interface NodeValidator<LabeledExtract>
- Overrides:
postValidateFolder
in class BasicNodeValidator<LabeledExtract>
- Parameters:
dc
- A DbControl to use for database accesscontext
- The current overview contextfolderNode
- The folder node, or null if no folder has been createdparentNode
- The parent node (never null)
getMissingItemFix
protected Fix getMissingItemFix(Node parentNode)
- The suggested fix is to add a source labeled extracts to the
either the hybridization or the pooled labeled extract.
- Specified by:
getMissingItemFix
in class BasicNodeValidator<LabeledExtract>
validateLabeledExtractOnHyb
private void validateLabeledExtractOnHyb(DbControl dc,
OverviewContext context,
Node extractNode,
Node hybNode)
validatePooledLabeledExtract
private void validatePooledLabeledExtract(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)