org.apache.commons.clazz.reflect.common
Class ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser

java.lang.Object
  extended by org.apache.commons.clazz.reflect.common.AccessorMethodParser
      extended by org.apache.commons.clazz.reflect.common.ReflectedScalarPropertyIntrospector.ReadAccessorMethodParser
          extended by org.apache.commons.clazz.reflect.common.ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser
Enclosing class:
ReflectedScalarPropertyIntrospector

public static class ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser
extends ReflectedScalarPropertyIntrospector.ReadAccessorMethodParser

Parser for the getFoo() method:


Constructor Summary
ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser()
           
 
Method Summary
protected  String getPropertyName(Method method)
          Parse method name and return the corresponding property name.
 
Methods inherited from class org.apache.commons.clazz.reflect.common.ReflectedScalarPropertyIntrospector.ReadAccessorMethodParser
getValueType, requiredParameterCount, requiredPrefix, testReturnType
 
Methods inherited from class org.apache.commons.clazz.reflect.common.AccessorMethodParser
decapitalize, getParameterType, parse, testAndRemoveSuffix, testFirstCharacterOfPropertyName, testParameterType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser

public ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser()
Method Detail

getPropertyName

protected String getPropertyName(Method method)
Description copied from class: AccessorMethodParser
Parse method name and return the corresponding property name. Return null if the method name does not satisfy the parser's grammar.

The default implementation of the method checks if the method name starts with the specified prefix followed by an optionally capitalized property name.

Overrides:
getPropertyName in class AccessorMethodParser
Returns:
String


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