org.springmodules.validation.bean.rule
Class RegExpValidationRule

java.lang.Object
  extended by org.springmodules.validation.bean.rule.AbstractValidationRule
      extended by 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

Field Summary
static String DEFAULT_ERROR_CODE
           
 
Constructor Summary
RegExpValidationRule(String expression)
          Constructs a new RegExpValidationRule with a given regular expression.
 
Method Summary
 Condition getCondition()
          Returns the regular expression condition.
static String getDefaultErrorCode()
           
 
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
 

Field Detail

DEFAULT_ERROR_CODE

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

RegExpValidationRule

public RegExpValidationRule(String expression)
Constructs a new RegExpValidationRule with a given regular expression.

Parameters:
expression - The given regular expression.
Method Detail

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.