|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ValidationException | |
---|---|
org.barracudamvc.contrib.dbroggisch.repopulation | |
org.barracudamvc.contrib.sam.data | |
org.barracudamvc.core.forms | |
org.barracudamvc.core.forms.validators |
Uses of ValidationException in org.barracudamvc.contrib.dbroggisch.repopulation |
---|
Methods in org.barracudamvc.contrib.dbroggisch.repopulation that throw ValidationException | |
---|---|
FormMap |
ErrorFormMap.validate(boolean deferExceptions)
|
void |
SelectFormValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
|
Uses of ValidationException in org.barracudamvc.contrib.sam.data |
---|
Methods in org.barracudamvc.contrib.sam.data that throw ValidationException | |
---|---|
void |
RegexValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make sure a given pattern is matched Validation is only supported for FormType.STRING |
Uses of ValidationException in org.barracudamvc.core.forms |
---|
Subclasses of ValidationException in org.barracudamvc.core.forms | |
---|---|
class |
DeferredValidationException
This class defines a deferred validation exception. |
class |
ParseException
This exception indicates a value was unable to be converted to a valid value for the specified FormType. |
class |
UnableToValidateException
This exception indicates the Validator was not able to validate the incoming value. |
Methods in org.barracudamvc.core.forms that return ValidationException | |
---|---|
ValidationException |
AbstractFormValidator.generateException(Object source,
boolean deferExceptions,
String defaultMsg)
This is a simple convenience method to return the appropriate type of exception based on whether we're deferring or not. |
Methods in org.barracudamvc.core.forms with parameters of type ValidationException | |
---|---|
void |
ValidationException.addSubException(ValidationException ve)
Add a sub exception |
protected List |
ValidationException.getExceptionList(ValidationException ve)
|
Methods in org.barracudamvc.core.forms that throw ValidationException | |
---|---|
static String |
FormUtil.assertMinMax(String field,
String fieldDescr,
int min,
int max)
This method allows you to assert that a String value falls within a given min/max length range. |
static void |
FormUtil.assertTrue(String errmsg,
boolean expression)
This function simply evaluates a given boolean expression and throws a ValidationException using the specified error message if its not valid |
FormMap |
FormMap.validate(boolean deferExceptions)
|
FormMap |
DefaultFormMap.validate(boolean deferExceptions)
Validate the entire form (both form level and elements). |
void |
FormValidator.validate(FormElement element,
FormMap formMap,
boolean deferExceptions)
Validate a FormElement locally and allow any child validators a chance to validate as well. |
void |
Not.validate(FormElement element,
FormMap map,
boolean deferExceptions)
Rather than calling all the sub validate methods, we instead validate the validator we contain--because this validator is effectively doing a "NOT", we expect to receive a ValidationException; if we dont, then we will throw a ValidationException |
void |
DefaultFormValidator.validate(FormElement element,
FormMap map,
boolean deferExceptions)
Validate a FormElement locally and allow any child validators a chance to validate as well. |
void |
And.validate(FormElement element,
FormMap map,
boolean deferExceptions)
Rather than calling all the sub validate methods, we make sure at least one of the sub-validators is valid |
void |
Or.validate(FormElement element,
FormMap map,
boolean deferExceptions)
Rather than calling all the sub validate methods, we make sure at least one of the sub-validators is valid |
FormMap |
FormMap.validateElements(boolean deferExceptions)
|
FormMap |
DefaultFormMap.validateElements(boolean deferExceptions)
Validate just the elements (not the form) |
FormMap |
FormMap.validateForm(boolean deferExceptions)
|
FormMap |
DefaultFormMap.validateForm(boolean deferExceptions)
Validate just the form (not the individual elements) |
void |
DefaultFormValidator.validateForm(FormMap map,
boolean deferExceptions)
Validate an entire FormMap. |
void |
DefaultFormValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement. |
void |
DefaultFormValidator.validateFormElement(Object val,
FormElement element,
FormMap map,
boolean deferExceptions)
Validate a FormElement. |
Uses of ValidationException in org.barracudamvc.core.forms.validators |
---|
Methods in org.barracudamvc.core.forms.validators that throw ValidationException | |
---|---|
protected void |
LinkingValidator._checkFields(FormMap map,
String ikeyField,
String[] ifields,
boolean deferExceptions)
|
void |
ValidatorListValidator.validate(FormElement element,
FormMap map,
boolean deferExceptions)
|
void |
ListValidator.validate(FormElement element,
FormMap formMap,
boolean deferExceptions)
Will check origVal's type and loop through all the values calling the subValidator. |
void |
LinkingValidator.validateForm(FormMap map,
boolean deferExceptions)
|
void |
DateValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make sure the value is a valid date Validation is not supported for FormType.BOOLEAN FormType,INTEGER FormType.LONG FormType.SHORT FormType.DOUBLE FormType.FLOAT |
void |
MinLengthValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make sure the length of element is not less than a Min length. |
void |
EqualsValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make see if the element equals() a given object |
void |
RangeValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make see if the element equals() a given object |
void |
DateRangeValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make see if the element equals() a given object |
void |
EmailValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
|
void |
FriendlyValidTypeValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
|
void |
CardinalityValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make sure the number of values is in the specified range |
void |
RegularExpressionValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
|
void |
DigitValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make see if the element equals() a given object |
void |
ValidTypeValidator.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 |
void |
NotNullValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make sure that it is not Null or blanks. |
void |
MaxLengthValidator.validateFormElement(Object val,
FormElement element,
boolean deferExceptions)
Validate a FormElement to make sure the length of element does not exceed a Max length. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |