org.hibernate.validator.internal.metadata.core
Class AnnotationProcessingOptionsImpl

java.lang.Object
  extended by org.hibernate.validator.internal.metadata.core.AnnotationProcessingOptionsImpl
All Implemented Interfaces:
AnnotationProcessingOptions

public class AnnotationProcessingOptionsImpl
extends Object
implements AnnotationProcessingOptions

An AnnotationProcessingOptions instance keeps track of annotations which should be ignored as configuration source. The main validation source for Bean Validation is annotation and alternate configuration sources use this class to override/ignore existing annotations.

Author:
Hardy Ferentschik

Constructor Summary
AnnotationProcessingOptionsImpl()
           
 
Method Summary
 boolean areClassLevelConstraintsIgnoredFor(Class<?> clazz)
           
 boolean areMemberConstraintsIgnoredFor(Member member)
           
 boolean areParameterConstraintsIgnoredFor(Member member, int index)
           
 boolean areReturnValueConstraintsIgnoredFor(Member member)
           
 void ignoreAnnotationConstraintForClass(Class<?> clazz, Boolean b)
           
 void ignoreClassLevelConstraintAnnotations(Class<?> clazz, boolean b)
           
 void ignoreConstraintAnnotationsOnMember(Member member)
           
 void ignoreConstraintAnnotationsOnParameter(Member member, int index)
           
 void ignoreConstraintAnnotationsOnReturnValue(Member member)
           
 void merge(AnnotationProcessingOptions annotationProcessingOptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationProcessingOptionsImpl

public AnnotationProcessingOptionsImpl()
Method Detail

areMemberConstraintsIgnoredFor

public boolean areMemberConstraintsIgnoredFor(Member member)
Specified by:
areMemberConstraintsIgnoredFor in interface AnnotationProcessingOptions

areReturnValueConstraintsIgnoredFor

public boolean areReturnValueConstraintsIgnoredFor(Member member)
Specified by:
areReturnValueConstraintsIgnoredFor in interface AnnotationProcessingOptions

areParameterConstraintsIgnoredFor

public boolean areParameterConstraintsIgnoredFor(Member member,
                                                 int index)
Specified by:
areParameterConstraintsIgnoredFor in interface AnnotationProcessingOptions

areClassLevelConstraintsIgnoredFor

public boolean areClassLevelConstraintsIgnoredFor(Class<?> clazz)
Specified by:
areClassLevelConstraintsIgnoredFor in interface AnnotationProcessingOptions

merge

public void merge(AnnotationProcessingOptions annotationProcessingOptions)
Specified by:
merge in interface AnnotationProcessingOptions

ignoreAnnotationConstraintForClass

public void ignoreAnnotationConstraintForClass(Class<?> clazz,
                                               Boolean b)

ignoreConstraintAnnotationsOnMember

public void ignoreConstraintAnnotationsOnMember(Member member)

ignoreConstraintAnnotationsOnReturnValue

public void ignoreConstraintAnnotationsOnReturnValue(Member member)

ignoreConstraintAnnotationsOnParameter

public void ignoreConstraintAnnotationsOnParameter(Member member,
                                                   int index)

ignoreClassLevelConstraintAnnotations

public void ignoreClassLevelConstraintAnnotations(Class<?> clazz,
                                                  boolean b)


Copyright © 2007-2013 Red Hat Middleware, LLC. All Rights Reserved