org.barracudamvc.core.forms.validators
Class FriendlyValidTypeValidator
java.lang.Object
org.barracudamvc.core.forms.AbstractFormValidator
org.barracudamvc.core.forms.DefaultFormValidator
org.barracudamvc.core.forms.validators.ValidTypeValidator
org.barracudamvc.core.forms.validators.FriendlyValidTypeValidator
- All Implemented Interfaces:
- FormValidator
- public class FriendlyValidTypeValidator
- extends ValidTypeValidator
Custom extension of ValidTypeValidator that provides friendlier error messages.
- Since:
- csc_110304_1
- Author:
- christianc@atmreports.com
Method Summary |
void |
validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make sure that the non-null orig values are valid
for the specified element type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FriendlyValidTypeValidator
public FriendlyValidTypeValidator()
FriendlyValidTypeValidator
public FriendlyValidTypeValidator(String message)
validateFormElement
public void validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
throws ValidationException
- Description copied from class:
ValidTypeValidator
- Validate a FormElement to make sure that the non-null orig values are valid
for the specified element type
- Overrides:
validateFormElement
in class ValidTypeValidator
- Parameters:
val
- the value to compare the element value toelement
- the form element that contains the val
to validate elements by comparing them with other elements)deferExceptions
- do we want to deferValidation exceptions
and attempt to validate all elements so that we can process
all the exceptions at once
- Throws:
ValidationException
- if the element is not valid
Copyright © 2004 BarracudaMVC.org All Rights Reserved.