org.omnaest.utils.beans
Class BeanUtil.PropertyCriterionAnnotationname

java.lang.Object
  extended by org.omnaest.utils.beans.BeanUtil.PropertyCriterion
      extended by org.omnaest.utils.beans.BeanUtil.PropertyCriterionAnnotationname
Enclosing class:
BeanUtil

public static class BeanUtil.PropertyCriterionAnnotationname
extends BeanUtil.PropertyCriterion

Matches the name of an annotation of a property method, or the property with the same name as its property method, using regular expression. It is important that the given annotation is available on runtime. Not all annotations are.

Author:
Omnaest
See Also:
Retention

Field Summary
protected  List<String> annotationNameList
           
 
Constructor Summary
BeanUtil.PropertyCriterionAnnotationname()
           
 
Method Summary
 BeanUtil.PropertyCriterionAnnotationname addAnnotationNames(String[] annotationNames)
           
 boolean inspectMethod(Method method)
          This method is called for every declared method.
 void prepareInspection(Class<?> clazz)
          This method will be called once before the inspection process runs.
 
Methods inherited from class org.omnaest.utils.beans.BeanUtil.PropertyCriterion
and, annotationname, hasGetter, hasGetterAndSetter, hasGetterOrSetter, hasSetter, methodname, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotationNameList

protected List<String> annotationNameList
Constructor Detail

BeanUtil.PropertyCriterionAnnotationname

public BeanUtil.PropertyCriterionAnnotationname()
Method Detail

inspectMethod

public boolean inspectMethod(Method method)
Description copied from class: BeanUtil.PropertyCriterion
This method is called for every declared method. The method should return true if the method matches the criteria.

Specified by:
inspectMethod in class BeanUtil.PropertyCriterion
Returns:

addAnnotationNames

public BeanUtil.PropertyCriterionAnnotationname addAnnotationNames(String[] annotationNames)

prepareInspection

public void prepareInspection(Class<?> clazz)
Description copied from class: BeanUtil.PropertyCriterion
This method will be called once before the inspection process runs. This can be used to collect needed information.

Specified by:
prepareInspection in class BeanUtil.PropertyCriterion


Copyright © 2011. All Rights Reserved.