org.apache.commons.clazz.reflect.common
Class ReflectedPropertyIntrospectorSupport
java.lang.Object
org.apache.commons.clazz.reflect.common.ReflectedPropertyIntrospectorSupport
- All Implemented Interfaces:
- ReflectedPropertyIntrospector
- Direct Known Subclasses:
- ReflectedListPropertyIntrospectorSupport, ReflectedMappedPropertyIntrospector, ReflectedScalarPropertyIntrospector
public abstract class ReflectedPropertyIntrospectorSupport
- extends Object
- implements ReflectedPropertyIntrospector
- Version:
- $Id: ReflectedPropertyIntrospectorSupport.java 155436 2005-02-26 13:17:48Z dirkv $
- Author:
- Dmitri Plotnikov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectedPropertyIntrospectorSupport
public ReflectedPropertyIntrospectorSupport()
introspectProperties
public List introspectProperties(ReflectedClazz clazz,
Class javaClass)
- Description copied from interface:
ReflectedPropertyIntrospector
- Find methods and fields constituting properties of the
corresponding kind. Create ClazzProperty objects and
return them as a list. The clazz may already
have been populated with properties created by other methods.
- Specified by:
introspectProperties
in interface ReflectedPropertyIntrospector
introspectProperties
public abstract void introspectProperties(ReflectedClazz clazz,
Class javaClass,
Map parseResultMap)
introspectDeclaredProperties
public List introspectDeclaredProperties(ReflectedClazz clazz,
Class javaClass)
createProperty
protected abstract ReflectedAccessorPairProperty createProperty(ReflectedClazz clazz,
ReflectedPropertyParseResults parseResults)
- Creates a new ReflectedAccessorPairProperty based on parse results.
isCorrectPluralForm
protected boolean isCorrectPluralForm(String singular,
String plural)
- Returns true if the
plural
parameter is
a correct plural form for the property names singular
.
If the plural.startsWith(singular), calls isCorrectPluralSuffix
with the singular form and the remaining part of the plural form.
Separately handles the "~y" - "~ies" substitution for English.
isCorrectPluralSuffix
protected boolean isCorrectPluralSuffix(String singular,
String suffix)
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.