DRAFT

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

DRAFT

Submit a bug or feature

Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.