|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanDescriptor
Describe a constrained Java Bean and the constraints associated to it.
Method Summary | |
---|---|
java.util.Set<PropertyDescriptor> |
getConstrainedProperties()
|
PropertyDescriptor |
getConstraintsForProperty(java.lang.String propertyName)
Return the property descriptor for a given property. |
boolean |
isBeanConstrained()
Returns true if the bean involves validation: a constraint is hosted on the bean itself a constraint is hosted on one of the bean properties or a bean property is marked for cascade (@Valid) |
Methods inherited from interface javax.validation.ElementDescriptor |
---|
getConstraintDescriptors, getType, hasConstraints |
Method Detail |
---|
boolean isBeanConstrained()
true
if the bean involves validation, false
otherwise.PropertyDescriptor getConstraintsForProperty(java.lang.String propertyName)
null
if the property does not exist or has no
constraint nor is marked as cascaded (see getConstrainedProperties()
)
The returned object (and associated objects including ConstraintDescriptors)
are immutable.
propertyName
- property evaludated
java.util.Set<PropertyDescriptor> getConstrainedProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |