org.springjutsu.validation.executors.impl
Class ExactLengthRuleExecutor

java.lang.Object
  extended by org.springjutsu.validation.executors.ValidWhenEmptyRuleExecutor
      extended by org.springjutsu.validation.executors.impl.ExactLengthRuleExecutor
All Implemented Interfaces:
RuleExecutor

public class ExactLengthRuleExecutor
extends ValidWhenEmptyRuleExecutor

Asserts that the model's length is exactly as specified by the argument.

Author:
Clark Duplichien, Taylor Wicksell

Constructor Summary
ExactLengthRuleExecutor()
           
 
Method Summary
 boolean doValidate(Object model, Object argument)
          Implementors can use this to actually do validation.
 
Methods inherited from class org.springjutsu.validation.executors.ValidWhenEmptyRuleExecutor
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExactLengthRuleExecutor

public ExactLengthRuleExecutor()
Method Detail

doValidate

public boolean doValidate(Object model,
                          Object argument)
Description copied from class: ValidWhenEmptyRuleExecutor
Implementors can use this to actually do validation.

Specified by:
doValidate in class ValidWhenEmptyRuleExecutor
Parameters:
model - Model to validate
argument - Argument to the rule
Returns:
true if the rule passed.


Copyright © 2013 Spring Jutsu. All Rights Reserved.