Class VolumeValidationRule
java.lang.Object
gov.nasa.pds.tools.validate.rule.AbstractValidationRule
gov.nasa.pds.tools.validate.rule.pds3.VolumeValidationRule
- All Implemented Interfaces:
ValidationRule,Observer,org.apache.commons.chain.Command
public class VolumeValidationRule extends AbstractValidationRule implements Observer
Implements a validation rule for PDS3 volumes.
-
Field Summary
Fields Modifier and Type Field Description protected StatusContainerstatusStatus container to hold current state of the validation processFields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors Constructor Description VolumeValidationRule() -
Method Summary
Modifier and Type Method Description booleanisApplicable(String location)Tests whether a rule is applicable to a target location.voidupdate(Observable validator, Object object)Generic update to validation process, either updates message or posts a bucketvoidvalidateVolume()Methods inherited from class gov.nasa.pds.tools.validate.rule.AbstractValidationRule
execute, getCaption, getChildContext, getContext, getExtraTarget, getListener, getParentTarget, getRegistrar, getTarget, isDebugLogLevel, isInfoLogLevel, reportError, reportError, setCaption, verifyLidPrefix
-
Field Details
-
status
Status container to hold current state of the validation process
-
-
Constructor Details
-
VolumeValidationRule
public VolumeValidationRule()
-
-
Method Details
-
isApplicable
Description copied from class:AbstractValidationRuleTests whether a rule is applicable to a target location.- Specified by:
isApplicablein interfaceValidationRule- Specified by:
isApplicablein classAbstractValidationRule- Parameters:
location- the target location- Returns:
- true, if the rule is applicable to the target, false otherwise
-
validateVolume
- Throws:
Exception
-
update
Generic update to validation process, either updates message or posts a bucket
-