org.apache.bval.jsr303.xml
Class AnnotationIgnores

java.lang.Object
  extended by org.apache.bval.jsr303.xml.AnnotationIgnores

public final class AnnotationIgnores
extends Object

Description: This class instantiated during the parsing of the XML configuration data and keeps track of the annotations which should be ignored.


Constructor Summary
AnnotationIgnores()
           
 
Method Summary
 boolean getDefaultIgnoreAnnotation(Class<?> clazz)
          Learn whether the specified annotation type should be ignored.
 boolean isIgnoreAnnotations(Class<?> clazz)
          Learn whether annotations should be ignored for a given class.
 boolean isIgnoreAnnotations(Member member)
          Learn whether annotations should be ignored on a particular Member of a class.
 void setDefaultIgnoreAnnotation(Class<?> clazz, Boolean b)
          Record the ignore state for a particular annotation type.
 void setIgnoreAnnotationsOnClass(Class<?> clazz, boolean b)
          Record the ignore state of a particular class.
 void setIgnoreAnnotationsOnMember(Member member)
          Ignore annotations on a particular Member of a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationIgnores

public AnnotationIgnores()
Method Detail

setDefaultIgnoreAnnotation

public void setDefaultIgnoreAnnotation(Class<?> clazz,
                                       Boolean b)
Record the ignore state for a particular annotation type.

Parameters:
clazz -
b, - default true if null

getDefaultIgnoreAnnotation

public boolean getDefaultIgnoreAnnotation(Class<?> clazz)
Learn whether the specified annotation type should be ignored.

Parameters:
clazz -
Returns:
boolean

setIgnoreAnnotationsOnMember

public void setIgnoreAnnotationsOnMember(Member member)
Ignore annotations on a particular Member of a class.

Parameters:
member -

isIgnoreAnnotations

public boolean isIgnoreAnnotations(Member member)
Learn whether annotations should be ignored on a particular Member of a class.

Parameters:
member -
Returns:
boolean

setIgnoreAnnotationsOnClass

public void setIgnoreAnnotationsOnClass(Class<?> clazz,
                                        boolean b)
Record the ignore state of a particular class.

Parameters:
clazz -
b -

isIgnoreAnnotations

public boolean isIgnoreAnnotations(Class<?> clazz)
Learn whether annotations should be ignored for a given class.

Parameters:
clazz - to check
Returns:
boolean


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.