org.springmodules.validation.bean.rule
Class MinValidationRule

java.lang.Object
  extended by org.springmodules.validation.bean.rule.AbstractValidationRule
      extended by org.springmodules.validation.bean.rule.MinValidationRule
All Implemented Interfaces:
ValidationRule

public class MinValidationRule
extends AbstractValidationRule

An AbstractValidationRule that validates and checks that a comparable value is greater than or equals a specific lower bound.

Author:
Uri Boness

Field Summary
static java.lang.String DEFAULT_ERROR_CODE
           
 
Constructor Summary
MinValidationRule(java.lang.Comparable min)
          Constructs a new MinValidationRule with a given lower bound.
 
Method Summary
 Condition getCondition()
          Returns the condition of this validation rule.
 java.lang.Comparable getMin()
           
 
Methods inherited from class org.springmodules.validation.bean.rule.AbstractValidationRule
createErrorArgumentsResolver, createErrorArgumentsResolver, createErrorArgumentsResolver, createErrorArgumentsResolver, getDefaultErrorMessage, getErrorArguments, getErrorCode, isApplicable, setApplicabilityCondition, setDefaultErrorMessage, setErrorArgumentsResolver, setErrorCode, supportsNullValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ERROR_CODE

public static final java.lang.String DEFAULT_ERROR_CODE
See Also:
Constant Field Values
Constructor Detail

MinValidationRule

public MinValidationRule(java.lang.Comparable min)
Constructs a new MinValidationRule with a given lower bound. The error arguments of this rule are by default the validated value and the lower bound (in this order).

Parameters:
min - The lower bound.
Method Detail

getCondition

public Condition getCondition()
Returns the condition of this validation rule.

Returns:
The condition of this validation rule.
See Also:
ValidationRule.getCondition()

getMin

public java.lang.Comparable getMin()


Copyright © 2005. All Rights Reserved.