|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValidatedConstrained<P extends ConstrainedProperty>
This interface extends the Validated interface and provides additional
methods that are related to beans that are constrained with ConstrainedProperty constraints.
One notable addition is the capability to handle ValidationGroups.
Validated,
Constrained,
ConstrainedProperty,
ValidationGroup| Method Summary | |
|---|---|
List<PropertyValidationRule> |
addConstrainedPropertyRules(P constrainedProperty)
Adds the validation rules that are related to a particular ConstrainedProperty. |
ValidationGroup<P> |
addGroup(String name)
Adds a new validation group. |
void |
focusGroup(String name)
Focuses on one particular validation group, showing only the ValidationErrors that were generated by its
ValidationRules. |
List<PropertyValidationRule> |
generateConstrainedPropertyRules(P constrainedProperty)
Generates the validation rules that are related to a particular ConstrainedProperty. |
ValidationGroup<P> |
getGroup(String name)
Retrieve a particular validation group. |
Collection<ValidationGroup<P>> |
getGroups()
Retrieves all validation groups. |
Collection<String> |
getLoadingErrors(String propertyName)
Returns the collection of error messages that occurred during the loading of the content of a certain property. |
void |
resetGroup(String name)
Removed all the ValidationErrors of a particular
validation group. |
boolean |
validateGroup(String name)
Validate the ValidationRules of a particular validation
group. |
boolean |
validateGroup(String name,
ValidationContext context)
Validate the ValidationRules of a particular validation
group and also validates the entire bean within the provided
ValidationContext |
| Methods inherited from interface com.uwyn.rife.site.Validated |
|---|
addRule, addValidationError, countValidationErrors, getRules, getValidatedSubjects, getValidationErrors, isSubjectValid, limitSubjectErrors, makeErrorValid, makeSubjectValid, provideValidatedBean, replaceValidationErrors, resetValidation, retrieveValidatedBean, unlimitSubjectErrors, validate, validate |
| Method Detail |
|---|
ValidationGroup<P> addGroup(String name)
name - the name of the validation group that needs to be created
and added
ValidationGroupvoid focusGroup(String name)
ValidationErrors that were generated by its
ValidationRules.
name - the name of the validation group that will be focusedvoid resetGroup(String name)
ValidationErrors of a particular
validation group.
name - the name of the validation group that will be focusedCollection<ValidationGroup<P>> getGroups()
ValidationGroup<P> getGroup(String name)
name - the name of the validation group that will be retrieved
ValidationGroup; or
null if no such validation group exists
boolean validateGroup(String name)
ValidationRules of a particular validation
group.
name - the name of the validation group that will be retrieved
true if no validation errors were generated; or
false otherwise
boolean validateGroup(String name,
ValidationContext context)
ValidationRules of a particular validation
group and also validates the entire bean within the provided
ValidationContext
name - the name of the validation groupcontext - the ValidationContext in which this bean
instance will be additionally validated
true if no validation errors were generated; or
false otherwise
List<PropertyValidationRule> addConstrainedPropertyRules(P constrainedProperty)
ConstrainedProperty.
If the rules of this property name have already been added before
through another ConstrainedProperty instance, its existing
ValidationRules will be erased and the previous
constraints will be merged into the new
ConstrainedProperty before adding its validation rules.
constrainedProperty - the ConstrainedProperty that will be
inspected
ValidationRulesList<PropertyValidationRule> generateConstrainedPropertyRules(P constrainedProperty)
ConstrainedProperty.
constrainedProperty - the ConstrainedProperty that will be
inspected
ValidationRulesCollection<String> getLoadingErrors(String propertyName)
propertyName - the name of the property whose loading errors
should be obtained
the requested collection of error messages
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||