org.apache.commons.clazz.reflect.extended
Class ReflectedMappedPropertyIntrospector.GetAccessorMethodParser

java.lang.Object
  extended by org.apache.commons.clazz.reflect.common.AccessorMethodParser
      extended by org.apache.commons.clazz.reflect.extended.ReflectedMappedPropertyIntrospector.GetAccessorMethodParser
Enclosing class:
ReflectedMappedPropertyIntrospector

public static class ReflectedMappedPropertyIntrospector.GetAccessorMethodParser
extends AccessorMethodParser

Parser for the getFoo(key) method:


Constructor Summary
ReflectedMappedPropertyIntrospector.GetAccessorMethodParser()
           
 
Method Summary
protected  Class getParameterType(Method method)
          Extract the parameter type from the method, if it has one.
protected  Class getValueType(Method method)
          Extract the value type from the method.
protected  int requiredParameterCount()
          If a method parsed by this parser must have a number or parameters, override and return that number.
protected  String requiredPrefix()
          If a method parsed by this parser must have a certain prefix, override and return a non-null prefix string
protected  boolean testReturnType(Class returnType)
          To check constraints on the return type of methods parsed by this parser, override and perform the check.
 
Methods inherited from class org.apache.commons.clazz.reflect.common.AccessorMethodParser
decapitalize, getPropertyName, parse, testAndRemoveSuffix, testFirstCharacterOfPropertyName, testParameterType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectedMappedPropertyIntrospector.GetAccessorMethodParser

public ReflectedMappedPropertyIntrospector.GetAccessorMethodParser()
Method Detail

testReturnType

protected boolean testReturnType(Class returnType)
Description copied from class: AccessorMethodParser
To check constraints on the return type of methods parsed by this parser, override and perform the check.

Overrides:
testReturnType in class AccessorMethodParser
Parameters:
returnType - The return type of the method (never null)
Returns:
boolean True if the return type passes the parser's constraints

requiredPrefix

protected String requiredPrefix()
Description copied from class: AccessorMethodParser
If a method parsed by this parser must have a certain prefix, override and return a non-null prefix string

Overrides:
requiredPrefix in class AccessorMethodParser

requiredParameterCount

protected int requiredParameterCount()
Description copied from class: AccessorMethodParser
If a method parsed by this parser must have a number or parameters, override and return that number.

Overrides:
requiredParameterCount in class AccessorMethodParser

getValueType

protected Class getValueType(Method method)
Description copied from class: AccessorMethodParser
Extract the value type from the method. Depending on the type of method, it could be the return type or the type of a parameter.

Overrides:
getValueType in class AccessorMethodParser

getParameterType

protected Class getParameterType(Method method)
Description copied from class: AccessorMethodParser
Extract the parameter type from the method, if it has one. For example a mapped property "get" method might have a "key" parameter.

Overrides:
getParameterType in class AccessorMethodParser


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