org.hibernate.validator.internal.metadata.location
Interface ConstraintLocation

All Known Implementing Classes:
BeanConstraintLocation, CrossParameterConstraintLocation, ExecutableConstraintLocation

public interface ConstraintLocation

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

Author:
Gunnar Morling

Method Summary
 Class<?> getBeanClass()
          Returns the class on which the constraint is defined.
 ElementType getElementType()
          Returns the ElementType on which the constraint is defined.
 Member getMember()
          Returns the member the constraint is defined on.
 Type typeOfAnnotatedElement()
          Returns the type of the element at this constraint location.
 

Method Detail

getBeanClass

Class<?> getBeanClass()
Returns the class on which the constraint is defined.

Returns:
the class on which the constraint is defined.

typeOfAnnotatedElement

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

ElementType getElementType()
Returns the ElementType on which the constraint is defined.

Returns:
the ElementType on which the constraint is defined.

getMember

Member getMember()
Returns the member the constraint is defined on.

Returns:
the member the constraint is defined on.


Copyright © 2007-2013 Red Hat Middleware, LLC. All Rights Reserved