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(Class<?> beanClass,
Member member) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Class<?> |
getBeanClass() |
ElementType |
getElementType() |
Member |
getMember() |
String |
getPropertyName() |
int |
hashCode() |
String |
toString() |
Type |
typeOfAnnotatedElement()
Returns the type of the element at this constraint location.
|
public BeanConstraintLocation(Class<?> beanClass)
public Class<?> getBeanClass()
getBeanClass
in interface ConstraintLocation
public Member getMember()
public String getPropertyName()
null
if this is a
class level constraint.public Type typeOfAnnotatedElement()
ConstraintLocation
typeOfAnnotatedElement
in interface ConstraintLocation
public ElementType getElementType()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.