public interface TypeDescriptor extends ElementDescriptor
ElementDescriptor.ConstraintFinder
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.
|
MethodDescriptor |
getConstraintsForMethod(String methodName,
Class<?>... parameterTypes)
Returns a descriptor for the specified method.
|
boolean |
isTypeConstrained()
Whether this type has any class-, property- (field or getter style) or
method-level constraints or not.
|
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
boolean isTypeConstrained()
Valid
annotation,Valid
annotation,Valid
annotationTrue
, if this type has any constraints,
false
Set<MethodDescriptor> getConstrainedMethods()
MethodDescriptor getConstraintsForMethod(String methodName, Class<?>... parameterTypes)
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.
IllegalArgumentException
- if methodName
is null.BeanDescriptor getBeanDescriptor()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.