Class NameableNodeValidator<I extends Nameable>
java.lang.Object
net.sf.basedb.util.overview.validator.BasicNodeValidator<I>
net.sf.basedb.util.overview.validator.NameableNodeValidator<I>
- All Implemented Interfaces:
NodeValidator<I>
- Direct Known Subclasses:
ArrayBatchValidator
,ArrayDesignValidator
,ArraySlideValidator
,BioPlateValidator
,BioSourceValidator
,DerivedBioAssayValidator
,ExperimentalFactorValidator
,ExperimentValidator
,ExtractValidator
,FileValidator
,HardwareValidator
,KitValidator
,PhysicalBioAssayValidator
,PlatformValidator
,ProtocolParameterValidator
,ProtocolValidator
,RawBioAssayValidator
,SampleValidator
,SoftwareValidator
,TagValidator
-
Constructor Summary
ConstructorDescriptionNameableNodeValidator
(Validator ruleMissing, Validator ruleDenied) Creates a new validator. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
createFailure
(OverviewContext context, Set<String> knownDuplicates, Validator validator, Node node, String name) Create a failure on this node unless we have created a failure for the same validator already.void
postValidate
(DbControl dc, OverviewContext context, Node node, Node parentNode) Do nothing.Methods inherited from class net.sf.basedb.util.overview.validator.BasicNodeValidator
getDeniedItemFix, getMissingItemFix, postDeniedItem, postMissingItem, postValidateFolder, preDeniedItem, preMissingItem, preValidate
-
Constructor Details
-
NameableNodeValidator
Creates a new validator.- Parameters:
ruleMissing
- The validation rule that is broken if an item is missing, or null to not report missing items as a failureruleDenied
- The validation rule that is broken if we are denied access to an item, or null to not report this as a failure
-
-
Method Details
-
postValidate
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 interfaceNodeValidator<I extends Nameable>
- Overrides:
postValidate
in classBasicNodeValidator<I extends Nameable>
- 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
-
createFailure
private void createFailure(OverviewContext context, Set<String> knownDuplicates, Validator validator, Node node, String name) Create a failure on this node unless we have created a failure for the same validator already.
-