@Deprecated public interface TypeDescriptor extends ElementDescriptor
ElementDescriptor.ConstraintFinder| Modifier and Type | Method and Description |
|---|---|
BeanDescriptor |
getBeanDescriptor()
Deprecated.
Returns a descriptor for the bean related constraints of this type.
|
Set<MethodDescriptor> |
getConstrainedMethods()
Deprecated.
Returns a set with the constrained methods of this type.
|
MethodDescriptor |
getConstraintsForMethod(String methodName,
Class<?>... parameterTypes)
Deprecated.
Returns a descriptor for the specified method.
|
boolean |
isTypeConstrained()
Deprecated.
Whether this type has any class-, property- (field or getter style) or
method-level constraints or not.
|
findConstraints, getConstraintDescriptors, getElementClass, hasConstraintsboolean isTypeConstrained()
Valid
annotation,Valid annotation,Valid annotationTrue, if this type has any constraints,
falseSet<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 © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved