public class BeanDescriptorImpl<T> extends ElementDescriptorImpl implements BeanDescriptor, TypeDescriptor
ElementDescriptor.ConstraintFinder| Constructor and Description |
|---|
BeanDescriptorImpl(Class<T> beanClass,
Set<ConstraintDescriptorImpl<?>> classLevelConstraints,
Map<String,PropertyDescriptor> properties,
Map<String,MethodDescriptor> methods,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence) |
| Modifier and Type | Method and Description |
|---|---|
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<PropertyDescriptor> |
getConstrainedProperties() |
MethodDescriptor |
getConstraintsForMethod(String methodName,
Class<?>... parameterTypes)
Returns a descriptor for the specified method.
|
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.
|
asDescriptors, findConstraints, getConstraintDescriptors, getElementClass, hasConstraints, isCascadedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindConstraints, getConstraintDescriptors, getElementClass, hasConstraintspublic BeanDescriptorImpl(Class<T> beanClass, Set<ConstraintDescriptorImpl<?>> classLevelConstraints, Map<String,PropertyDescriptor> properties, Map<String,MethodDescriptor> methods, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
public final boolean isBeanConstrained()
isBeanConstrained in interface BeanDescriptorpublic final PropertyDescriptor getConstraintsForProperty(String propertyName)
getConstraintsForProperty in interface BeanDescriptorpublic final Set<PropertyDescriptor> getConstrainedProperties()
getConstrainedProperties in interface 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 BeanDescriptor getBeanDescriptor()
TypeDescriptorgetBeanDescriptor in interface TypeDescriptorCopyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved