org.hibernate.validator.internal.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.annotation.ElementType getElementType()
           
 java.lang.reflect.Member getMember()
           
 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.

getElementType

java.lang.annotation.ElementType getElementType()

getMember

java.lang.reflect.Member getMember()


Copyright © 2012 Oracle Corporation. All Rights Reserved.