|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeDescriptor
Describes a constrained Java type and the constraints associated to it.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor |
---|
ElementDescriptor.ConstraintFinder |
Method Summary | |
---|---|
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. |
Methods inherited from interface javax.validation.metadata.ElementDescriptor |
---|
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints |
Method Detail |
---|
boolean isTypeConstrained()
Valid
annotation,Valid
annotation,Valid
annotation
True
, 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.
- Throws:
IllegalArgumentException
- if methodName
is null.
BeanDescriptor getBeanDescriptor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |