org.enhydra.barracuda.contrib.dbroggisch.repopulation
Class SelectFormValidator
java.lang.Object
org.enhydra.barracuda.core.forms.AbstractFormValidator
org.enhydra.barracuda.core.forms.DefaultFormValidator
org.enhydra.barracuda.contrib.dbroggisch.repopulation.SelectFormValidator
- All Implemented Interfaces:
- FormValidator
- public class SelectFormValidator
- extends DefaultFormValidator
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.log4j.Logger logger
SelectFormValidator
public SelectFormValidator(String ignore)
SelectFormValidator
public SelectFormValidator(String ignore,
String message)
SelectFormValidator
public SelectFormValidator()
SelectFormValidator
public SelectFormValidator(int selMode)
SelectFormValidator
public SelectFormValidator(int selMode,
String message)
SelectFormValidator
public SelectFormValidator(int selMode,
String ignore,
String message)
setSelectionMode
public void setSelectionMode(int mode)
getSelectionMode
public int getSelectionMode()
setIgnore
public void setIgnore(String val)
getIgnore
public String getIgnore()
validateFormElement
public void validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
throws ValidationException
- Description copied from class:
DefaultFormValidator
- Validate a FormElement. This is the method developers should
override to provide specific validation based on the value
and (potentially) information contained in the FormElement.
To indicate an element is invalid, through a ValidationException,
which will interrupt the validation process immediately. If you
want to indicate an error, but would still like validation to
continue (so that you can identify multiple errors in one
validation pass) throw a DeferredValidationException instead.
- Overrides:
validateFormElement
in class DefaultFormValidator
- Parameters:
val
- the actual value to be validatedelement
- 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 © 2003 BarracudaMVC.org All Rights Reserved.