org.springmodules.validation.bean.rule
Class ConditionReferenceValidationRule

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

public class ConditionReferenceValidationRule
extends AbstractValidationRule

Author:
Uri Boness

Field Summary
static String DEFAULT_ERROR_CODE
           
 
Constructor Summary
ConditionReferenceValidationRule(String beanName, ApplicationContext applicationContext)
           
 
Method Summary
 Condition getCondition()
          Returns the condition of this validation rule.
protected  boolean supportsNullValues()
          Determines whether this validation rule supports null values.
 
Methods inherited from class org.springmodules.validation.bean.rule.AbstractValidationRule
checkContexts, createErrorArgumentsResolver, createErrorArgumentsResolver, createErrorArgumentsResolver, createErrorArgumentsResolver, getDefaultErrorMessage, getErrorArguments, getErrorCode, isApplicable, setApplicabilityCondition, setContextTokens, setDefaultErrorMessage, setErrorArgumentsResolver, setErrorCode
 
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

ConditionReferenceValidationRule

public ConditionReferenceValidationRule(String beanName,
                                        ApplicationContext applicationContext)
Method Detail

getCondition

public Condition getCondition()
Description copied from interface: ValidationRule
Returns the condition of this validation rule.

Returns:
The condition of this validation rule.

supportsNullValues

protected boolean supportsNullValues()
Description copied from class: AbstractValidationRule
Determines whether this validation rule supports null values. This method by default returns false, any sub-class that supports null values should override this method and return true.

Overrides:
supportsNullValues in class AbstractValidationRule
Returns:
whether this validation rule supports null values.


Copyright © 2009. All Rights Reserved.