Class 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.
    • Constructor Detail

      • StandardValidationChain

        public StandardValidationChain()
    • Method Detail

      • isApplicable

        public boolean isApplicable​(String location)
        Description copied from interface: ValidationRule
        Tests whether a rule is applicable to a target location.
        Specified by:
        isApplicable in interface ValidationRule
        Specified by:
        isApplicable in class AbstractValidationChain
        Parameters:
        location - the target location to validate
        Returns:
        true, if the rule is applicable to the target, false otherwise