public class BeanMetaConstraint<A extends Annotation> extends MetaConstraint<A>
MetaConstraint
implementation that represents a field,
property-level or class level constraint and allows the unified handling of
these constraints.location
Constructor and Description |
---|
BeanMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor,
Class<?> beanClass,
Member member)
Creates a new
BeanMetaConstraint . |
Modifier and Type | Method and Description |
---|---|
BeanConstraintLocation |
getLocation()
Returns the location of this constraint.
|
Object |
getValue(Object o) |
equals, getDescriptor, getElementType, getGroupList, hashCode, toString, typeOfAnnotatedElement, validateConstraint
public BeanMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor, Class<?> beanClass, Member member)
BeanMetaConstraint
.constraintDescriptor
- The descriptor for this constraint.beanClass
- The type hosting this constraint.member
- The field or getter method hosting this constraint if this is
not a class-level constraint, otherwise null.public BeanConstraintLocation getLocation()
getLocation
in class MetaConstraint<A extends Annotation>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.