public interface ValidatedConstrained extends Validated(Code)
This interface extends the Validated interface and provides additional
methods that are related to beans that are constrained with
ConstrainedProperty constraints.
Adds the validation rules that are related to a particular
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.
Parameters: constrainedProperty - the ConstrainedProperty that will beinspected the list of generated ValidationRules since: 1.4
Adds a new validation group.
Parameters: name - the name of the validation group that needs to be createdand added the newly created ValidationGroup since: 1.4
Focuses on one particular validation group, showing only the
ValidationErrors that were generated by its
ValidationRules.
Parameters: name - the name of the validation group that will be focused since: 1.4
Generates the validation rules that are related to a particular
ConstrainedProperty .
Parameters: constrainedProperty - the ConstrainedProperty that will beinspected the list of generated ValidationRules since: 1.4
Returns the collection of error messages that occurred during the
loading of the content of a certain property.
Parameters: propertyName - the name of the property whose loading errorsshould be obtained null if no errors occurred during the loading of the content ofthe provided property or if the property doesn't exist; or
the requested collection of error messages since: 1.4
Validate the ValidationRules of a particular validation
group.
Parameters: name - the name of the validation group that will be retrieved true if no validation errors were generated; or
Validate the ValidationRules of a particular validation
group and also validates the entire bean within the provided
ValidationContext Parameters: name - the name of the validation group Parameters: context - the ValidationContext in which this beaninstance will be additionally validated true if no validation errors were generated; or