org.hibernate.validator.internal.metadata.location
Class CrossParameterConstraintLocation

java.lang.Object
  extended by org.hibernate.validator.internal.metadata.location.CrossParameterConstraintLocation
All Implemented Interfaces:
ConstraintLocation

public class CrossParameterConstraintLocation
extends Object
implements ConstraintLocation

A ConstraintLocation representing all the parameters of a method or constructor; Used for cross-parameter constraints.

Author:
Gunnar Morling

Constructor Summary
CrossParameterConstraintLocation(ExecutableElement executableElement)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossParameterConstraintLocation

public CrossParameterConstraintLocation(ExecutableElement executableElement)
Method Detail

getBeanClass

public Class<?> getBeanClass()
Description copied from interface: ConstraintLocation
Returns the class on which the constraint is defined.

Specified by:
getBeanClass in interface ConstraintLocation
Returns:
the class on which the constraint is defined.

typeOfAnnotatedElement

public Type typeOfAnnotatedElement()
Description copied from interface: ConstraintLocation
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.

Specified by:
typeOfAnnotatedElement in interface ConstraintLocation
Returns:
The type of the element at this constraint location.

getElementType

public ElementType getElementType()
Description copied from interface: ConstraintLocation
Returns the ElementType on which the constraint is defined.

Specified by:
getElementType in interface ConstraintLocation
Returns:
the ElementType on which the constraint is defined.

getMember

public Member getMember()
Description copied from interface: ConstraintLocation
Returns the member the constraint is defined on.

Specified by:
getMember in interface ConstraintLocation
Returns:
the member the constraint is defined on.


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