org.apache.commons.clazz.reflect.common
Class ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser
java.lang.Object
org.apache.commons.clazz.reflect.common.AccessorMethodParser
org.apache.commons.clazz.reflect.common.ReflectedScalarPropertyIntrospector.ReadAccessorMethodParser
org.apache.commons.clazz.reflect.common.ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser
- Enclosing class:
- ReflectedScalarPropertyIntrospector
public static class ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser
- extends ReflectedScalarPropertyIntrospector.ReadAccessorMethodParser
Parser for the getFoo()
method:
- Return type not void
- Name starts with "get" followed by capitalized property name.
If the property is boolean the name may also start with "is".
- No parameters
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser
public ReflectedScalarPropertyIntrospector.JBReadAccessorMethodParser()
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.