public class BeanDescriptorImpl<T> extends ElementDescriptorImpl implements javax.validation.metadata.BeanDescriptor, TypeDescriptor
| Constructor and Description |
|---|
BeanDescriptorImpl(BeanMetaData<T> beanMetaData) |
| Modifier and Type | Method and Description |
|---|---|
javax.validation.metadata.BeanDescriptor |
getBeanDescriptor()
Returns a descriptor for the bean related constraints of this type.
|
Set<MethodDescriptor> |
getConstrainedMethods()
Returns a set with the constrained methods of this type.
|
Set<javax.validation.metadata.PropertyDescriptor> |
getConstrainedProperties() |
MethodDescriptor |
getConstraintsForMethod(String methodName,
Class<?>... parameterTypes)
Returns a descriptor for the specified method.
|
javax.validation.metadata.PropertyDescriptor |
getConstraintsForProperty(String propertyName) |
boolean |
isBeanConstrained() |
boolean |
isTypeConstrained()
Whether this type has any class-, property- (field or getter style) or
method-level constraints or not.
|
addConstraintDescriptor, findConstraints, getConstraintDescriptors, getElementClass, getMetaDataBean, hasConstraintspublic BeanDescriptorImpl(BeanMetaData<T> beanMetaData)
public final boolean isBeanConstrained()
isBeanConstrained in interface javax.validation.metadata.BeanDescriptorpublic final javax.validation.metadata.PropertyDescriptor getConstraintsForProperty(String propertyName)
getConstraintsForProperty in interface javax.validation.metadata.BeanDescriptorpublic final Set<javax.validation.metadata.PropertyDescriptor> getConstrainedProperties()
getConstrainedProperties in interface javax.validation.metadata.BeanDescriptorpublic boolean isTypeConstrained()
TypeDescriptorValid
annotation,Valid annotation,Valid annotationisTypeConstrained in interface TypeDescriptorTrue, if this type has any constraints,
falsepublic Set<MethodDescriptor> getConstrainedMethods()
TypeDescriptorgetConstrainedMethods in interface TypeDescriptorpublic MethodDescriptor getConstraintsForMethod(String methodName, Class<?>... parameterTypes)
TypeDescriptorgetConstraintsForMethod in interface TypeDescriptormethodName - The name of the method to retrieve a descriptor for.parameterTypes - The types of the parameters of the method to retrieve a
descriptor for, in the order as they are defined in the method
signature.null, if no method
with the given name and parameter types is declared on the type represented
by this descriptor or its super types.public javax.validation.metadata.BeanDescriptor getBeanDescriptor()
TypeDescriptorgetBeanDescriptor in interface TypeDescriptorCopyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved