org.springmodules.validation.bean.conf.loader.xml.handler
Class RangeRuleElementHandler

java.lang.Object
  extended by org.springmodules.validation.bean.conf.loader.xml.handler.AbstractPropertyValidationElementHandler
      extended by org.springmodules.validation.bean.conf.loader.xml.handler.RangeRuleElementHandler
All Implemented Interfaces:
PropertyValidationElementHandler, ConditionExpressionBased, FunctionExpressionBased

public class RangeRuleElementHandler
extends AbstractPropertyValidationElementHandler

An AbstractPropertyValidationElementHandler implementation that can handle an element that represent a range validation rule, min validation rule, or max validation rule.

Author:
Uri Boness

Field Summary
static java.lang.String DEFAULT_MAX_ERROR_CODE
          The defult error code for the max validation rule.
static java.lang.String DEFAULT_MIN_ERROR_CODE
          The defult error code for the min validation rule.
 
Constructor Summary
RangeRuleElementHandler(java.lang.String namespaceUri)
          Constructs a new RangeRuleElementHandler.
 
Method Summary
protected  AbstractValidationRule createValidationRule(org.w3c.dom.Element element)
          Creates the validation rule represented and initialized by and with the given element.
 
Methods inherited from class org.springmodules.validation.bean.conf.loader.xml.handler.AbstractPropertyValidationElementHandler
extractApplicabilityCondition, extractArgumentsResolver, extractErrorCode, extractMessage, getConditionExpressionParser, getFunctionExpressionParser, handle, isConditionGloballyScoped, setConditionExpressionParser, setFunctionExpressionParser, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MIN_ERROR_CODE

public static final java.lang.String DEFAULT_MIN_ERROR_CODE
The defult error code for the min validation rule.

See Also:
Constant Field Values

DEFAULT_MAX_ERROR_CODE

public static final java.lang.String DEFAULT_MAX_ERROR_CODE
The defult error code for the max validation rule.

See Also:
Constant Field Values
Constructor Detail

RangeRuleElementHandler

public RangeRuleElementHandler(java.lang.String namespaceUri)
Constructs a new RangeRuleElementHandler.

Method Detail

createValidationRule

protected AbstractValidationRule createValidationRule(org.w3c.dom.Element element)
Description copied from class: AbstractPropertyValidationElementHandler
Creates the validation rule represented and initialized by and with the given element.

Specified by:
createValidationRule in class AbstractPropertyValidationElementHandler
Parameters:
element - The element that represents the validation rule.
Returns:
The newly created validation rule.


Copyright © 2005. All Rights Reserved.