|
|||||||||
| 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.jodatime.InstantInPastRuleElementHandler
public class InstantInPastRuleElementHandler
An AbstractPropertyValidationElementHandler implementation that can handle an element that represents an "in the
past" joda-time instant validation rule.
| Constructor Summary | |
|---|---|
InstantInPastRuleElementHandler(java.lang.String namespaceUri)
Constructs a new InstantInPastRuleElementHandler. |
|
| 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 type org.joda.time.Instant. |
| 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 InstantInPastRuleElementHandler(java.lang.String namespaceUri)
| Method Detail |
|---|
public boolean supports(org.w3c.dom.Element element,
java.lang.Class clazz,
java.beans.PropertyDescriptor descriptor)
org.joda.time.Instant.
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 | ||||||||