A B C D E F G H I L M P R S T U V W

A

add(PropertyValidator<?>) - Method in class com.tzavellas.validation.BeanValidator
Add a PropertyValidator to be used when validating objects.
addError(ValidationError) - Method in class com.tzavellas.validation.ValidationResult
Add a validation.
addValidator(PropertyValidator<T>) - Method in class com.tzavellas.validation.property.LinkedValidatorBuilder
Add the specified validator to the list of validators.
addValidator(PropertyValidator<?>) - Method in class com.tzavellas.validation.spring.SpringValidator
Provide a PropertyValidator to be used by the wrapped BeanValidator.
after(Calendar) - Method in class com.tzavellas.validation.property.CalendarValidatorBuilder
Validates that a Calendar is after the specified Calendar.
after(Date) - Method in class com.tzavellas.validation.property.DateValidatorBuilder
Validates that a Date is after the specified Date.

B

BeanValidator - Class in com.tzavellas.validation
A class used to validate the properties of JavaBean objects using a collection of specified PropertyValidators.
BeanValidator(PropertyValidator<?>...) - Constructor for class com.tzavellas.validation.BeanValidator
Construct a BeanValidator with the specified collection of PropertyValidators.
before(Calendar) - Method in class com.tzavellas.validation.property.CalendarValidatorBuilder
Validates that a Calendar is before the specified Calendar.
before(Date) - Method in class com.tzavellas.validation.property.DateValidatorBuilder
Validates that a Date is before the specified Date.
build() - Method in class com.tzavellas.validation.PropertyValidator.Builder
 

C

calendar(String) - Static method in class com.tzavellas.validation.property.Validators
Validate a property of type java.util.Calendar.
CalendarValidatorBuilder - Class in com.tzavellas.validation.property
A property validator for Calendar objects.
CalendarValidatorBuilder(String) - Constructor for class com.tzavellas.validation.property.CalendarValidatorBuilder
Create a CalendarValidatorBuilder for the specified property name.
com.tzavellas.validation - package com.tzavellas.validation
Contains the main API.
com.tzavellas.validation.property - package com.tzavellas.validation.property
Contains PropertyValidator and various builders for the validation DSL.
com.tzavellas.validation.spring - package com.tzavellas.validation.spring
Integration with the Spring Framework
creditCard() - Method in class com.tzavellas.validation.property.StringValidatorBuilder
Validates that a String object is a valid credit card number.

D

date(String) - Static method in class com.tzavellas.validation.property.Validators
Validate a property of type java.util.Date.
DateValidatorBuilder - Class in com.tzavellas.validation.property
A property validator for Date objects.
DateValidatorBuilder(String) - Constructor for class com.tzavellas.validation.property.DateValidatorBuilder
Create a DateValidatorBuilder for the specified property name.
doExtraValidation(Object, Errors) - Method in class com.tzavellas.validation.spring.SpringValidator
This method can be overridden to provide custom validation logic in addition to the BeanValidator that this Validator delegates to.

E

email() - Method in class com.tzavellas.validation.property.StringValidatorBuilder
Validates that a String object is a valid email address.
extraRequiredCheck(T) - Method in class com.tzavellas.validation.property.LinkedValidatorBuilder
Subclasses can override this method to add custom behaviour to the required validator.
extraRequiredCheck(String) - Method in class com.tzavellas.validation.property.StringValidatorBuilder
Ensure that empty strings (the String "") are rejected in the required validator.

F

floatingPoint(String) - Static method in class com.tzavellas.validation.property.Validators
Validate a floating point property (float, Float, double, and Double).
FloatValidatorBuilder - Class in com.tzavellas.validation.property
A property validator for Float and Double objects.
FloatValidatorBuilder(String) - Constructor for class com.tzavellas.validation.property.FloatValidatorBuilder
Create a FloatValidatorBuilder for the specified property name.
future() - Method in class com.tzavellas.validation.property.CalendarValidatorBuilder
Validates that a Calendar is in the future.
future() - Method in class com.tzavellas.validation.property.DateValidatorBuilder
Validates that a Date is in the future.

G

getArguments() - Method in class com.tzavellas.validation.ValidationError
Get an array of objects to be used in conjunction with the error message using MessageFormat
getDefaultMessage() - Method in class com.tzavellas.validation.ValidationError
Get a default error message to display if no error message can be resolved using the errorCode.
getErrorCode() - Method in class com.tzavellas.validation.ValidationError
Get an error code to be used as a lookup key in a dictionary to resolve the error message.
getErrorMessages(Locale) - Method in class com.tzavellas.validation.ValidationResult
Get a map of [field, error-message] entries for this result, if this result has no errors an empty map is returned.
getErrors() - Method in class com.tzavellas.validation.ValidationResult
Get the collection of validation errors for this ValidationResult.
getField() - Method in class com.tzavellas.validation.ValidationError
Get the property name that failed the validation.
getMessage(ValidationError, Locale) - Method in interface com.tzavellas.validation.MessageResolver
Resolve the error message for the specified ValidationError.
getMessage(ValidationError, Locale) - Method in class com.tzavellas.validation.spring.MessageSourceResolver
 
getProperty() - Method in class com.tzavellas.validation.PropertyValidator
Get the name of the property this validator will validate.

H

hasErrors() - Method in class com.tzavellas.validation.ValidationResult
Returns true if this result contains errors.

I

in(Object...) - Method in class com.tzavellas.validation.property.LinkedValidatorBuilder
Validate that the value of the property is equal with one of the specified objects.
integer(String) - Static method in class com.tzavellas.validation.property.Validators
Validate an integer property (int, Integer, long, and Long).
IntegerValidatorBuilder - Class in com.tzavellas.validation.property
A property validator for Integer and Long objects.
IntegerValidatorBuilder(String) - Constructor for class com.tzavellas.validation.property.IntegerValidatorBuilder
Create a IntegerValidatorBuilder for the specified property name.
isbn() - Method in class com.tzavellas.validation.property.StringValidatorBuilder
Validates that a String object is a valid ISBN.
isValid(Object) - Method in class com.tzavellas.validation.BeanValidator
Validate the specified object.
isValid(T) - Method in class com.tzavellas.validation.property.LinkedValidatorBuilder
Test if the specified property value is valid
isValid(T) - Method in class com.tzavellas.validation.PropertyValidator
Test if the specified property value is valid
isValid(Object) - Method in class com.tzavellas.validation.spring.SpringValidator
A method to test if the specified object is valid.
isValid() - Method in class com.tzavellas.validation.ValidationResult
Returns true if this result does not contain errors.

L

LinkedValidatorBuilder<T,V extends LinkedValidatorBuilder> - Class in com.tzavellas.validation.property
The root of the hierarchy of builder classes, that are used in the validation DSL.
LinkedValidatorBuilder(String) - Constructor for class com.tzavellas.validation.property.LinkedValidatorBuilder
Create a LinkedValidatorBuilder for the specified property name.

M

max(double) - Method in class com.tzavellas.validation.property.FloatValidatorBuilder
Validates that a Number object is less than or equal to the specified double.
max(long) - Method in class com.tzavellas.validation.property.IntegerValidatorBuilder
Validates that a Number object is less than or equal to the specified long.
maxLength(int) - Method in class com.tzavellas.validation.property.StringValidatorBuilder
Validates that a String object has length less than or equal to the specified max prameter.
MessageResolver - Interface in com.tzavellas.validation
Resolve an error message for a ValidationError.
MessageSourceResolver - Class in com.tzavellas.validation.spring
An adapter class from Spring's MessageSource to MessageResolver.
MessageSourceResolver(MessageSource) - Constructor for class com.tzavellas.validation.spring.MessageSourceResolver
Construct a MessageSourceResolver.
min(double) - Method in class com.tzavellas.validation.property.FloatValidatorBuilder
Validates that a Number object is greater than or equal to the specified double.
min(long) - Method in class com.tzavellas.validation.property.IntegerValidatorBuilder
Validates that a Number object is greater than or equal to the specified long.
minLength(int) - Method in class com.tzavellas.validation.property.StringValidatorBuilder
Validates that a String object has length greater than or equal to the specified max prameter.

P

past() - Method in class com.tzavellas.validation.property.CalendarValidatorBuilder
Validates that a Calendar is in the past.
past() - Method in class com.tzavellas.validation.property.DateValidatorBuilder
Validates that a Date is in the past.
property(String) - Static method in class com.tzavellas.validation.property.Validators
Validate a property of type Object.
property - Variable in class com.tzavellas.validation.PropertyValidator
 
PropertyValidator<T> - Class in com.tzavellas.validation
A class used to validate a JavaBean property.
PropertyValidator(String) - Constructor for class com.tzavellas.validation.PropertyValidator
This is for the LinkedValidatorBuilder and subclasses.
PropertyValidator(String, Validator<T>, ValidationError) - Constructor for class com.tzavellas.validation.PropertyValidator
Construct a PropertyValidator
PropertyValidator.Builder<T> - Class in com.tzavellas.validation
A builder used to create a PropertyValidator
PropertyValidator.Builder(String) - Constructor for class com.tzavellas.validation.PropertyValidator.Builder
 

R

range(double, double) - Method in class com.tzavellas.validation.property.FloatValidatorBuilder
Validates that a Number object belongs to the specified range.
range(long, long) - Method in class com.tzavellas.validation.property.IntegerValidatorBuilder
Validates that a Number object belongs to the specified range.
regex(String) - Method in class com.tzavellas.validation.property.StringValidatorBuilder
Validates that a String object matches the specified regular expression.
required() - Method in class com.tzavellas.validation.property.LinkedValidatorBuilder
Mark the property of this PropertyValidator as required, by adding the required validator to the validators list.

S

setDefaultErrorMessage(String) - Method in class com.tzavellas.validation.PropertyValidator
Modify the default message of the ValidationError this validator returns.
setDefaultMessage(String) - Method in class com.tzavellas.validation.ValidationError
Set the default error message to be displayed if no error message can be resolved using the errorCode.
setErrorCode(String) - Method in class com.tzavellas.validation.PropertyValidator
Modify the error code of the ValidationError this validator returns.
setErrorCode(String) - Method in class com.tzavellas.validation.ValidationError
Set the error code to be used as a lookup key in a dictionary to resolve the error message.
setMessageResolver(MessageResolver) - Method in class com.tzavellas.validation.ValidationResult
Set the MessageResolver to be used for the messages of this ValidationResult.
SpringValidator - Class in com.tzavellas.validation.spring
An adapter of the BeanValidator to the Spring's Validator interface.
SpringValidator(Class<?>) - Constructor for class com.tzavellas.validation.spring.SpringValidator
Create a SpringValidator that supports the specified class and an empty BeanValidator.
SpringValidator(Class<?>, PropertyValidator<?>...) - Constructor for class com.tzavellas.validation.spring.SpringValidator
Create a SpringValidator.
SpringValidator(Class<?>, BeanValidator) - Constructor for class com.tzavellas.validation.spring.SpringValidator
Create a SpringValidator that supports the specified class and delegates to the specified BeanValidator.
string(String) - Static method in class com.tzavellas.validation.property.Validators
Validate a property of type String.
StringValidatorBuilder - Class in com.tzavellas.validation.property
A property validator for String objects.
StringValidatorBuilder(String) - Constructor for class com.tzavellas.validation.property.StringValidatorBuilder
Create a StringValidatorBuilder for the specified property name.
supports(Class) - Method in class com.tzavellas.validation.spring.SpringValidator

T

toString() - Method in class com.tzavellas.validation.ValidationError
Returns the default message.

U

url() - Method in class com.tzavellas.validation.property.StringValidatorBuilder
Validates that a String object is a valid URL.

V

validate(Object) - Method in class com.tzavellas.validation.BeanValidator
Validate the specified object.
validate(T) - Method in class com.tzavellas.validation.property.LinkedValidatorBuilder
Test if the specified property value is valid
validate(T) - Method in class com.tzavellas.validation.PropertyValidator
Test if the specified property value is valid
validate(Object, Errors) - Method in class com.tzavellas.validation.spring.SpringValidator
ValidationError - Class in com.tzavellas.validation
A class that represents a validation error.
ValidationError(String, String, String, Object...) - Constructor for class com.tzavellas.validation.ValidationError
Default constructor for ValidationError.
ValidationResult - Class in com.tzavellas.validation
The result of a validation.
ValidationResult() - Constructor for class com.tzavellas.validation.ValidationResult
 
Validators - Class in com.tzavellas.validation.property
A class with short factory methods to create the initial PropertyValidator objects in the validation DSL.

W

withDefaultMessage(String) - Method in class com.tzavellas.validation.property.LinkedValidatorBuilder
Override the default message of the last specified validator.
withDefaultMessage(String) - Method in class com.tzavellas.validation.PropertyValidator.Builder
 
withErrorCode(String) - Method in class com.tzavellas.validation.property.LinkedValidatorBuilder
Override the error code of the last specified validator.
withErrorCode(String) - Method in class com.tzavellas.validation.PropertyValidator.Builder
 
withMessageArgs(Object...) - Method in class com.tzavellas.validation.PropertyValidator.Builder
 
withValidator(Validator<T>) - Method in class com.tzavellas.validation.PropertyValidator.Builder
 

A B C D E F G H I L M P R S T U V W

Copyright © 2007-2009 spiros.blog(). All Rights Reserved.