public class MetaConstraint<T,A extends Annotation> extends Object
| Constructor and Description |
|---|
MetaConstraint(Class<T> beanClass,
Member member,
A annotation)
Create a new MetaConstraint instance.
|
| Modifier and Type | Method and Description |
|---|---|
AccessStrategy |
getAccessStrategy()
Get the access strategy used for the associated property.
|
A |
getAnnotation()
Get the annotation that defines this constraint.
|
Class<T> |
getBeanClass()
Get the bean class of this constraint.
|
Integer |
getIndex() |
Member |
getMember()
Get the member to which this constraint applies.
|
void |
setIndex(int index) |
public MetaConstraint(Class<T> beanClass, Member member, A annotation)
beanClass - The class in which the constraint is defined onmember - The member on which the constraint is defined on, null if it is a class constraint}annotation - public Member getMember()
public A getAnnotation()
public AccessStrategy getAccessStrategy()
AccessStrategypublic Integer getIndex()
public void setIndex(int index)
Copyright © 2010–2024 The Apache Software Foundation. All rights reserved.