javax.validation
Interface ElementDescriptor

All Known Subinterfaces:
BeanDescriptor, PropertyDescriptor

public interface ElementDescriptor

Describes a validated element (class, field or property).

Author:
Emmanuel Bernard, Hardy Ferentschik

Method Summary
 java.util.Set<ConstraintDescriptor<?>> getConstraintDescriptors()
          Return all constraint descriptors for this element or an empty Set if none are present.
 java.lang.Class<?> getType()
           
 boolean hasConstraints()
           
 

Method Detail

hasConstraints

boolean hasConstraints()
Returns:
true if at least one constraint declaration is present on the element, false otherwise.

getType

java.lang.Class<?> getType()
Returns:
Statically defined returned type.

getConstraintDescriptors

java.util.Set<ConstraintDescriptor<?>> getConstraintDescriptors()
Return all constraint descriptors for this element or an empty Set if none are present.

Returns:
Set of constraint descriptors for this element


Copyright © 2007-2009. All Rights Reserved.