Interface PluralStemmer

All Known Implementing Classes:

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.

$Revision: 438373 $
James Strachan

Method Summary
 ElementDescriptor findPluralDescriptor(java.lang.String propertyName, java.util.Map map)
          Find the plural descriptor for a singular property.

Method Detail


ElementDescriptor findPluralDescriptor(java.lang.String propertyName,
                                       java.util.Map map)
Find the plural descriptor for a singular property.

propertyName - is the singular property name, from the adder method
map - 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.
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.