org.springjutsu.validation.executors
Interface RuleExecutor

All Known Implementing Classes:
AlphabeticRuleExecutor, AlphanumericRuleExecutor, EmailRuleExecutor, ExactLengthRuleExecutor, MatchesRuleExecutor, MaxLengthRuleExecutor, MinLengthRuleExecutor, NumericRuleExecutor, RegexMatchRuleExecutor, RequiredRuleExecutor, ValidWhenEmptyRuleExecutor

public interface RuleExecutor

Performs validation for a given rule.

Author:
Clark Duplichien

Method Summary
 boolean validate(Object model, Object argument)
          Validate the given rule Generally, a rule should return valid if the model is null or empty, unless this is a rule to validate the presence of the object.
 

Method Detail

validate

boolean validate(Object model,
                 Object argument)
                 throws Exception
Validate the given rule Generally, a rule should return valid if the model is null or empty, unless this is a rule to validate the presence of the object.

Parameters:
model - The object on which the rule operates
argument - Some argument providing details on how to operate on the object
Returns:
true if valid
Throws:
Exception - any exception to be handled by the parent framework.


Copyright © 2013 Spring Jutsu. All Rights Reserved.