Package gov.nasa.pds.tools.validate.rule
Class StandardValidationChain
java.lang.Object
org.apache.commons.chain.impl.ChainBase
gov.nasa.pds.tools.validate.rule.AbstractValidationChain
gov.nasa.pds.tools.validate.rule.StandardValidationChain
- All Implemented Interfaces:
ValidationRule
,org.apache.commons.chain.Chain
,org.apache.commons.chain.Command
public class StandardValidationChain extends AbstractValidationChain
Implements a validation chain that is applicable if any of its
contained validation commands are applicable, and performs validation
by invoking all of its contained commands in turn.
-
Field Summary
Fields inherited from class org.apache.commons.chain.impl.ChainBase
commands, frozen
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
-
Constructor Summary
Constructors Constructor Description StandardValidationChain()
-
Method Summary
Modifier and Type Method Description boolean
isApplicable(String location)
Tests whether a rule is applicable to a target location.Methods inherited from class gov.nasa.pds.tools.validate.rule.AbstractValidationChain
getCaption, setCaption
Methods inherited from class org.apache.commons.chain.impl.ChainBase
addCommand, execute
-
Constructor Details
-
StandardValidationChain
public StandardValidationChain()
-
-
Method Details
-
isApplicable
Description copied from interface:ValidationRule
Tests whether a rule is applicable to a target location.- Specified by:
isApplicable
in interfaceValidationRule
- Specified by:
isApplicable
in classAbstractValidationChain
- Parameters:
location
- the target location to validate- Returns:
- true, if the rule is applicable to the target, false otherwise
-