java.lang.Object | |
↳ | org.apache.commons.betwixt.strategy.DefaultPluralStemmer |
A default implementation of the plural name stemmer which tests for some common english plural/singular patterns and then uses a simple starts-with algorithm
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
log | Log used for logging (Doh!) |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Algorithm supports common english plural patterns. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.betwixt.strategy.PluralStemmer
|
Log used for logging (Doh!)
Algorithm supports common english plural patterns.
First, common english plural constructions will be tried.
If the property doesn't end with 'y'
then this method will look for
a property with which has 'es'
appended.
If the property ends with 'y'
then a property with the 'y'
replaced by 'ies'
will be searched for.
If no matches are found then - if one exists - a property starting with the singular name will be returned.
propertyName | the property name string to match |
---|---|
map | the Map containing the ElementDescriptor 's
to be searched |