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, hasConstraints
public BeanDescriptorImpl(BeanMetaData<T> beanMetaData)
public final boolean isBeanConstrained()
isBeanConstrained
in interface javax.validation.metadata.BeanDescriptor
public final javax.validation.metadata.PropertyDescriptor getConstraintsForProperty(String propertyName)
getConstraintsForProperty
in interface javax.validation.metadata.BeanDescriptor
public final Set<javax.validation.metadata.PropertyDescriptor> getConstrainedProperties()
getConstrainedProperties
in interface javax.validation.metadata.BeanDescriptor
public boolean isTypeConstrained()
TypeDescriptor
Valid
annotation,Valid
annotation,Valid
annotationisTypeConstrained
in interface TypeDescriptor
True
, if this type has any constraints,
false
public Set<MethodDescriptor> getConstrainedMethods()
TypeDescriptor
getConstrainedMethods
in interface TypeDescriptor
public MethodDescriptor getConstraintsForMethod(String methodName, Class<?>... parameterTypes)
TypeDescriptor
getConstraintsForMethod
in interface TypeDescriptor
methodName
- 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()
TypeDescriptor
getBeanDescriptor
in interface TypeDescriptor
Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved