org.springframework.binding.validation.support
Class ValangRichValidator
java.lang.Object
org.springframework.binding.validation.support.ValangRichValidator
- All Implemented Interfaces:
- RichValidator, Validator
public class ValangRichValidator
- extends Object
- implements RichValidator
Implementation of RichValidator
that delegates to a
ValangValidator
for validation.
- Author:
- Oliver Hutchison
- See Also:
ValangValidator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValangRichValidator
public ValangRichValidator(FormModel formModel,
org.springmodules.validation.valang.ValangValidator validator)
getMessageSourceAccessor
public MessageSourceAccessor getMessageSourceAccessor()
setMessageSourceAccessor
public void setMessageSourceAccessor(MessageSourceAccessor messageSourceAccessor)
validate
public ValidationResults validate(Object object)
- Description copied from interface:
Validator
- Validates the provided object.
- Specified by:
validate
in interface Validator
- Parameters:
object
- the object to validate
- Returns:
- the results on the validation
validate
public ValidationResults validate(Object object,
String propertyName)
- Description copied from interface:
RichValidator
- Validates the given property of the provided object.
- Specified by:
validate
in interface RichValidator
- Parameters:
object
- the object to validate (may be an implementation ofpropertyName
- the name of the only property that has changed since the
last call to validate.
- Returns:
- the results on the validation
getRulesEffectedByProperty
protected Collection getRulesEffectedByProperty(String propertyName)
ruleSatisfied
protected void ruleSatisfied(org.springmodules.validation.valang.predicates.BasicValidationRule rule)
ruleViolated
protected void ruleViolated(org.springmodules.validation.valang.predicates.BasicValidationRule rule)
getValidationMessage
protected ValidationMessage getValidationMessage(org.springmodules.validation.valang.predicates.BasicValidationRule rule)
getSourceObject
protected Object getSourceObject()
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.