org.omnaest.utils.beans
Class BeanUtil.PropertyCriterionMethodname

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

public static class BeanUtil.PropertyCriterionMethodname
extends BeanUtil.PropertyCriterion

Matches the name of a method using regular expression.

Author:
Omnaest

Field Summary
protected  String methodName
           
 
Constructor Summary
BeanUtil.PropertyCriterionMethodname()
           
 
Method Summary
 String getMethodName()
           
 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.
 BeanUtil.PropertyCriterion setMethodName(String methodName)
           
 
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

methodName

protected String methodName
Constructor Detail

BeanUtil.PropertyCriterionMethodname

public BeanUtil.PropertyCriterionMethodname()
Method Detail

setMethodName

public BeanUtil.PropertyCriterion setMethodName(String methodName)

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:

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

getMethodName

public String getMethodName()


Copyright © 2011. All Rights Reserved.