org.apache.bval.jsr303.xml
Class MetaConstraint<T,A extends Annotation>

java.lang.Object
  extended by org.apache.bval.jsr303.xml.MetaConstraint<T,A>

public class MetaConstraint<T,A extends Annotation>
extends Object

Description: hold parsed information from xml to complete MetaBean later


Constructor Summary
MetaConstraint(Class<T> beanClass, Member member, A annotation)
          Create a new MetaConstraint instance.
 
Method Summary
 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.
 Member getMember()
          Get the member to which this constraint applies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaConstraint

public MetaConstraint(Class<T> beanClass,
                      Member member,
                      A annotation)
Create a new MetaConstraint instance.

Parameters:
beanClass - The class in which the constraint is defined on
member - The member on which the constraint is defined on, null if it is a class constraint}
annotation -
Method Detail

getBeanClass

public Class<T> getBeanClass()
Get the bean class of this constraint.

Returns:
Class

getMember

public Member getMember()
Get the member to which this constraint applies.

Returns:
Member

getAnnotation

public A getAnnotation()
Get the annotation that defines this constraint.

Returns:
Annotation

getAccessStrategy

public AccessStrategy getAccessStrategy()
Get the access strategy used for the associated property.

Returns:
AccessStrategy


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.