org.springmodules.validation.bean.rule
Class MinSizeValidationRule
java.lang.Object
org.springmodules.validation.bean.rule.AbstractValidationRule
org.springmodules.validation.bean.rule.MinSizeValidationRule
- All Implemented Interfaces:
- ValidationRule
public class MinSizeValidationRule
- extends AbstractValidationRule
An AbstractValidationRule
that validates and checks that the size of a collection or an array is greater
than or equals a specific lower bound.
- Author:
- Uri Boness
Constructor Summary |
MinSizeValidationRule(int min)
Constructs a new MinSizeValidationRule with a given lower bound. |
Methods inherited from class org.springmodules.validation.bean.rule.AbstractValidationRule |
checkContexts, createErrorArgumentsResolver, createErrorArgumentsResolver, createErrorArgumentsResolver, createErrorArgumentsResolver, getDefaultErrorMessage, getErrorArguments, getErrorCode, isApplicable, setApplicabilityCondition, setContextTokens, setDefaultErrorMessage, setErrorArgumentsResolver, setErrorCode, supportsNullValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ERROR_CODE
public static final String DEFAULT_ERROR_CODE
- See Also:
- Constant Field Values
MinSizeValidationRule
public MinSizeValidationRule(int min)
- Constructs a new MinSizeValidationRule with a given lower bound.
- Parameters:
min
- The lower bond.
getCondition
public Condition getCondition()
- Returns the condition of this validation rule.
- Returns:
- The condition of this validation rule.
- See Also:
ValidationRule.getCondition()
getMin
public int getMin()
Copyright © 2009. All Rights Reserved.