|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springmodules.validation.bean.conf.loader.xml.handler.AbstractPropertyValidationElementHandler
org.springmodules.validation.bean.conf.loader.xml.handler.DateInFutureRuleElementHandler
public class DateInFutureRuleElementHandler
An AbstractPropertyValidationElementHandler implementation that can handle an element that represents a "date in
the future" validation rule - a rule that validates that a given date occured in the future.
| Constructor Summary | |
|---|---|
DateInFutureRuleElementHandler(java.lang.String namespaceUri)
Constructs a new DateInFutureRuleElementHandler. |
|
| Method Summary | |
|---|---|
protected AbstractValidationRule |
createValidationRule(org.w3c.dom.Element element)
Creates the validation rule represented and initialized by and with the given element. |
boolean |
supports(org.w3c.dom.Element element,
java.lang.Class clazz,
java.beans.PropertyDescriptor descriptor)
In addition to the element name and namespace check, this handler only support properties of types Date and Calendar. |
| Methods inherited from class org.springmodules.validation.bean.conf.loader.xml.handler.AbstractPropertyValidationElementHandler |
|---|
extractApplicabilityCondition, extractArgumentsResolver, extractErrorCode, extractMessage, getConditionExpressionParser, getFunctionExpressionParser, handle, isConditionGloballyScoped, setConditionExpressionParser, setFunctionExpressionParser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateInFutureRuleElementHandler(java.lang.String namespaceUri)
| Method Detail |
|---|
public boolean supports(org.w3c.dom.Element element,
java.lang.Class clazz,
java.beans.PropertyDescriptor descriptor)
Date and Calendar.
supports in interface PropertyValidationElementHandlersupports in class AbstractPropertyValidationElementHandlerelement - The element to be handled.clazz - The validated clazz.descriptor - The property descriptor of the validated property.
true if this handler can handle the given element, false otherwise.PropertyValidationElementHandler.supports(org.w3c.dom.Element, Class, java.beans.PropertyDescriptor)protected AbstractValidationRule createValidationRule(org.w3c.dom.Element element)
AbstractPropertyValidationElementHandler
createValidationRule in class AbstractPropertyValidationElementHandlerelement - The element that represents the validation rule.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||