ConstraintDescriptors) are immutable.
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: a set with descriptors for the constrained constructor of this bean; will be empty if this bean has no constrained constructor but nevernullReturns a set with descriptors for the constrained constructors of the bean represented by this descriptor. |
| public Set | Returns: a set with descriptors for the constrained methods of this bean; will be empty if this bean has no constrained methods of the considered method type(s) but nevernullmethod type to consider methodType, MethodType... remaining optional method types to consider methodTypes)Returns a set with descriptors for the constrained methods of the bean represented by this descriptor. |
| public Set | Returns: the set ofPropertyDescriptors for the constraint properties; if
there are no constraint properties, the empty set is returnedReturns a set of property descriptors having at least one constraint defined
or marked as cascaded ( |
| public ConstructorDescriptor | Returns: a constructor descriptor for the given constructorthe parameter types of the constructor parameterTypes)Returns a constructor descriptor for the given constructor. |
| public MethodDescriptor | Returns: a method descriptor for the given methodthe name of the method methodName, Class<?>... the parameter types of the method parameterTypes)Returns a method descriptor for the given method. |
| public PropertyDescriptor | Returns: the property descriptor for a given propertyproperty evaluated propertyName)Returns the property descriptor for a given property. |
| public boolean | Returns: true if the bean involves validation, false otherwiseReturns
|
| getConstrainedConstructors | back to summary |
|---|---|
| public Set Returns a set with descriptors for the constrained constructors of the bean represented by this descriptor. Constrained constructors have at least one parameter or return value constraint or at least one parameter or return value marked for cascaded validation.
| |
| getConstrainedMethods | back to summary |
|---|---|
| public Set Returns a set with descriptors for the constrained methods of the bean represented by this descriptor. Constrained methods have at least one parameter or return value constraint or at least one parameter or return value marked for cascaded validation. Methods of super types are considered. Only methods matching the given method type(s) are considered.
| |
| getConstrainedProperties | back to summary |
|---|---|
| public Set Returns a set of property descriptors having at least one constraint defined
or marked as cascaded ( If no property matches, an empty set is returned. Properties of super types are considered.
| |
| getConstraintsForConstructor | back to summary |
|---|---|
| public ConstructorDescriptor getConstraintsForConstructor(Class<?>... parameterTypes) Returns a constructor descriptor for the given constructor.
Returns
| |
| getConstraintsForMethod | back to summary |
|---|---|
| public MethodDescriptor getConstraintsForMethod(String methodName, Class<?>... parameterTypes) Returns a method descriptor for the given method.
Returns
| |
| getConstraintsForProperty | back to summary |
|---|---|
| public PropertyDescriptor getConstraintsForProperty(String propertyName) Returns the property descriptor for a given property.
Returns
| |
| isBeanConstrained | back to summary |
|---|---|
| public boolean isBeanConstrained() Returns
Constrained methods and constructors are ignored.
| |