public class BeanConstraintLocation extends Object implements ConstraintLocation
ConstraintLocation
implementation that represents either a bean (in case of class-level
constraints), a field or a getter method (in case of property-level constraints).Constructor and Description |
---|
BeanConstraintLocation(Class<?> beanClass) |
BeanConstraintLocation(Member member) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
String |
toString() |
Type |
typeOfAnnotatedElement()
Returns the type of the element at this constraint location.
|
public BeanConstraintLocation(Class<?> beanClass)
public BeanConstraintLocation(Member member)
public Class<?> getBeanClass()
ConstraintLocation
getBeanClass
in interface ConstraintLocation
public Member getMember()
ConstraintLocation
getMember
in interface ConstraintLocation
public Type typeOfAnnotatedElement()
ConstraintLocation
typeOfAnnotatedElement
in interface ConstraintLocation
public ElementType getElementType()
ConstraintLocation
ElementType
on which the constraint is defined.getElementType
in interface ConstraintLocation
ElementType
on which the constraint is defined.Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved