public class BeanDescriptorImpl extends ElementDescriptorImpl implements BeanDescriptor
ElementDescriptor.ConstraintFinder
Constructor and Description |
---|
BeanDescriptorImpl(Type beanClass,
Set<ConstraintDescriptorImpl<?>> classLevelConstraints,
Map<String,PropertyDescriptor> constrainedProperties,
Map<String,ExecutableDescriptorImpl> constrainedMethods,
Map<String,ConstructorDescriptor> constrainedConstructors,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence) |
Modifier and Type | Method and Description |
---|---|
Set<ConstructorDescriptor> |
getConstrainedConstructors() |
Set<MethodDescriptor> |
getConstrainedMethods(MethodType methodType,
MethodType... methodTypes) |
Set<PropertyDescriptor> |
getConstrainedProperties() |
ConstructorDescriptor |
getConstraintsForConstructor(Class<?>... parameterTypes) |
MethodDescriptor |
getConstraintsForMethod(String methodName,
Class<?>... parameterTypes) |
PropertyDescriptor |
getConstraintsForProperty(String propertyName) |
boolean |
isBeanConstrained() |
String |
toString() |
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
public BeanDescriptorImpl(Type beanClass, Set<ConstraintDescriptorImpl<?>> classLevelConstraints, Map<String,PropertyDescriptor> constrainedProperties, Map<String,ExecutableDescriptorImpl> constrainedMethods, Map<String,ConstructorDescriptor> constrainedConstructors, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
public final boolean isBeanConstrained()
isBeanConstrained
in interface BeanDescriptor
public final PropertyDescriptor getConstraintsForProperty(String propertyName)
getConstraintsForProperty
in interface BeanDescriptor
public final Set<PropertyDescriptor> getConstrainedProperties()
getConstrainedProperties
in interface BeanDescriptor
public ConstructorDescriptor getConstraintsForConstructor(Class<?>... parameterTypes)
getConstraintsForConstructor
in interface BeanDescriptor
public Set<ConstructorDescriptor> getConstrainedConstructors()
getConstrainedConstructors
in interface BeanDescriptor
public Set<MethodDescriptor> getConstrainedMethods(MethodType methodType, MethodType... methodTypes)
getConstrainedMethods
in interface BeanDescriptor
public MethodDescriptor getConstraintsForMethod(String methodName, Class<?>... parameterTypes)
getConstraintsForMethod
in interface BeanDescriptor
Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved