2.17.2: 2011-06-17

net.sf.basedb.util.overview.validator
Class LabeledExtractValidator

java.lang.Object
  extended by net.sf.basedb.util.overview.validator.BasicNodeValidator<I>
      extended by net.sf.basedb.util.overview.validator.NameableNodeValidator<LabeledExtract>
          extended by 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) $

Constructor Summary
LabeledExtractValidator()
           
 
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 net.sf.basedb.util.overview.validator.BasicNodeValidator
getDeniedItemFix, postDeniedItem, postMissingItem, preDeniedItem, preMissingItem, preValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabeledExtractValidator

public LabeledExtractValidator()
Method Detail

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 database
context - The current overview context
node - The node object that represents item
parentNode - 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 access
context - The current overview context
folderNode - The folder node, or null if no folder has been created
parentNode - 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)

2.17.2: 2011-06-17