| org.apache.commons.betwixt.strategy.PluralStemmer
All known Subclasses: org.apache.commons.betwixt.strategy.DefaultPluralStemmer,
PluralStemmer | public interface PluralStemmer (Code) | | 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.
author: James Strachan version: $Revision: 438373 $ |
Method Summary | |
ElementDescriptor | findPluralDescriptor(String propertyName, Map map) Find the plural descriptor for a singular property.
the plural descriptor for the given singular property nameor null is no matching descriptor can be found Parameters: propertyName - is the singular property name, from the adder method Parameters: map - is a map with the keys are the property names of the availabledescriptors and the values are the descriptors. |
findPluralDescriptor | ElementDescriptor findPluralDescriptor(String propertyName, Map map)(Code) | | Find the plural descriptor for a singular property.
the plural descriptor for the given singular property nameor null is no matching descriptor can be found Parameters: propertyName - is the singular property name, from the adder method Parameters: map - is a map with the keys are the property names of the availabledescriptors and the values are the descriptors. This may not be null. |
|
|