org.apache.commons.betwixt.strategy
Interface PluralStemmer
- All Known Implementing Classes:
- DefaultPluralStemmer
public interface PluralStemmer
A plugin Strategy pattern which will detect the plural property which
maps to a singular property name.
This Strategy is used when composite properties (such as properties
of type Collection, List, Iterator, Enumeration) are used as we need to
match the adder-method, which typically uses a singular name.
This interface allows a variety of different implementations to be used.
- Version:
- $Revision: 438373 $
- Author:
- James Strachan
findPluralDescriptor
ElementDescriptor findPluralDescriptor(java.lang.String propertyName,
java.util.Map map)
- Find the plural descriptor for a singular property.
- Parameters:
propertyName
- is the singular property name, from the adder methodmap
- is a map with the keys are the property names of the available
descriptors and the values are the descriptors. This may not be null.
- Returns:
- the plural descriptor for the given singular property name
or
null
is no matching descriptor can be found
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.