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()
ConstraintLocationgetBeanClass in interface ConstraintLocationpublic Member getMember()
ConstraintLocationgetMember in interface ConstraintLocationpublic Type typeOfAnnotatedElement()
ConstraintLocationtypeOfAnnotatedElement in interface ConstraintLocationpublic ElementType getElementType()
ConstraintLocationElementType on which the constraint is defined.getElementType in interface ConstraintLocationElementType on which the constraint is defined.Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved