org.springmodules.validation.bean.conf
Interface MutableBeanValidationConfiguration

All Superinterfaces:
BeanValidationConfiguration
All Known Implementing Classes:
DefaultBeanValidationConfiguration

public interface MutableBeanValidationConfiguration
extends BeanValidationConfiguration

A default implementation of BeanValidationConfiguration.

Author:
Uri Boness

Method Summary
 void addCascadeValidation(CascadeValidation cascadeValidation)
          Adds the given cascade validation to this configuration.
 void addCascadeValidations(CascadeValidation[] cascadeValidations)
          Adds the given cascade validations to this configuration.
 void addCustomValidator(Validator validator)
          Adds the given validator to the custom validator of this configuration.
 void addCustomValidators(Validator[] validators)
          Adds the given validators to the custom validator of this configuration.
 void addGlobalRule(ValidationRule globalRule)
          Adds the given rule as global rules for this configuration.
 void addGlobalRules(ValidationRule[] globalRules)
          Adds the given rules as global rules for this configuration.
 void addPropertyRule(String propertyName, ValidationRule rule)
          Adds the given validation rule to the given property.
 void addPropertyRules(String propertyName, ValidationRule[] extraRules)
          Adds the given validation rules to the given property.
 void setCascadeValidations(CascadeValidation[] cascadeValidations)
          Sets the cascade validations of this configuration.
 void setCustomValidator(Validator validator)
          Sets the custom validator for this configuration.
 void setCustomValidators(Validator[] validators)
          Sets the custom validator for this configuration.
 void setGlobalRules(ValidationRule[] globalRules)
          Sets the global rules for this configuration.
 void setPropertyRules(String propertyName, ValidationRule[] rules)
          Sets the property validation rules for the given property.
 
Methods inherited from interface org.springmodules.validation.bean.conf.BeanValidationConfiguration
getCascadeValidations, getCustomValidator, getGlobalRules, getPropertyRules, getValidatedProperties
 

Method Detail

setGlobalRules

void setGlobalRules(ValidationRule[] globalRules)
Sets the global rules for this configuration.

Parameters:
globalRules - The global rules for this configuration

addGlobalRule

void addGlobalRule(ValidationRule globalRule)
Adds the given rule as global rules for this configuration.

Parameters:
globalRule - The rule to be added as global rules for this configuration.

addGlobalRules

void addGlobalRules(ValidationRule[] globalRules)
Adds the given rules as global rules for this configuration.

Parameters:
globalRules - The rules to be added as global rules for this configuration.

setPropertyRules

void setPropertyRules(String propertyName,
                      ValidationRule[] rules)
Sets the property validation rules for the given property.

Parameters:
propertyName - The name of the property.
rules - The validation rules for the given property.

addPropertyRule

void addPropertyRule(String propertyName,
                     ValidationRule rule)
Adds the given validation rule to the given property.

Parameters:
propertyName - The name of the property.
rule - The validation rule to be added to the given property.

addPropertyRules

void addPropertyRules(String propertyName,
                      ValidationRule[] extraRules)
Adds the given validation rules to the given property.

Parameters:
propertyName - The name of the property.
extraRules - The extra validation rules that will be added to the given property.

setCustomValidator

void setCustomValidator(Validator validator)
Sets the custom validator for this configuration.

Parameters:
validator - The custom validator for this configuration.

setCustomValidators

void setCustomValidators(Validator[] validators)
Sets the custom validator for this configuration. The custom validator will be compound with the given validators.

Parameters:
validators - The validators that will make the custom validator of this configuration.

addCustomValidator

void addCustomValidator(Validator validator)
Adds the given validator to the custom validator of this configuration.

Parameters:
validator - The validator to be added to the custom validator of this configuration.

addCustomValidators

void addCustomValidators(Validator[] validators)
Adds the given validators to the custom validator of this configuration.

Parameters:
validators - The validators to be added to the custom validator of this configuration.

setCascadeValidations

void setCascadeValidations(CascadeValidation[] cascadeValidations)
Sets the cascade validations of this configuration.

param cascadeValidations The cascade validations of this configuration.


addCascadeValidation

void addCascadeValidation(CascadeValidation cascadeValidation)
Adds the given cascade validation to this configuration.

Parameters:
cascadeValidation - The cascase validation to be added to this configuration.

addCascadeValidations

void addCascadeValidations(CascadeValidation[] cascadeValidations)
Adds the given cascade validations to this configuration.

Parameters:
cascadeValidations - The cascade validation to be added to this configuration.


Copyright © 2009. All Rights Reserved.