org.hibernate.validator.metadata.location
Interface ConstraintLocation

All Known Implementing Classes:
BeanConstraintLocation, MethodConstraintLocation

public interface ConstraintLocation

Implementations describe the location at which a constraint is specified (a bean, a method parameter etc.).

Author:
Gunnar Morling

Method Summary
 java.lang.Class<?> getBeanClass()
           
 java.lang.reflect.Type typeOfAnnotatedElement()
          Returns the type of the element at this constraint location.
 

Method Detail

getBeanClass

java.lang.Class<?> getBeanClass()

typeOfAnnotatedElement

java.lang.reflect.Type typeOfAnnotatedElement()
Returns the type of the element at this constraint location. Depending on the concrete implementation this might be the type of an annotated bean, method parameter etc.

Returns:
The type of the element at this constraint location.


Copyright © 2011 Oracle Corporation. All Rights Reserved.