org.springmodules.validation.bean.rule
Class RegExpValidationRule
java.lang.Object
org.springmodules.validation.bean.rule.AbstractValidationRule
org.springmodules.validation.bean.rule.RegExpValidationRule
- All Implemented Interfaces:
- ValidationRule
public class RegExpValidationRule
- extends AbstractValidationRule
An AbstractValidationRule
that represents a validation rule to validate string values based on a regular
expression.
- Author:
- Uri Boness
Constructor Summary |
RegExpValidationRule(String expression)
Constructs a new RegExpValidationRule with a given regular expression. |
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
RegExpValidationRule
public RegExpValidationRule(String expression)
- Constructs a new RegExpValidationRule with a given regular expression.
- Parameters:
expression
- The given regular expression.
getCondition
public Condition getCondition()
- Returns the regular expression condition.
- Returns:
- The condition of this validation rule.
- See Also:
ValidationRule.getCondition()
getDefaultErrorCode
public static String getDefaultErrorCode()
Copyright © 2009. All Rights Reserved.