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

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

public class ExpressionPropertyValidationElementHandler
extends AbstractPropertyValidationElementHandler

An AbstractPropertyValidationElementHandler that can handle elements that represent valang validation rules. This handler creates a valang conditoin out of a <valang> element.

Author:
Uri Boness

Constructor Summary
ExpressionPropertyValidationElementHandler(java.lang.String namespaceUri)
          Constructs a new ExpressionPropertyValidationElementHandler.
 
Method Summary
protected  AbstractValidationRule createValidationRule(org.w3c.dom.Element element)
          Creates the validation rule represented and initialized by and with the given element.
 boolean isConditionGloballyScoped(org.w3c.dom.Element element)
          By default the element handlers handle and produce rules that can be associated with both global and non-global contexts.
 
Methods inherited from class org.springmodules.validation.bean.conf.loader.xml.handler.AbstractPropertyValidationElementHandler
extractApplicabilityCondition, extractArgumentsResolver, extractErrorCode, extractMessage, getConditionExpressionParser, getFunctionExpressionParser, handle, setConditionExpressionParser, setFunctionExpressionParser, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionPropertyValidationElementHandler

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

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.

isConditionGloballyScoped

public boolean isConditionGloballyScoped(org.w3c.dom.Element element)
Description copied from class: AbstractPropertyValidationElementHandler
By default the element handlers handle and produce rules that can be associated with both global and non-global contexts.

Overrides:
isConditionGloballyScoped in class AbstractPropertyValidationElementHandler


Copyright © 2005. All Rights Reserved.