Apache CXF API

org.apache.cxf.binding.http.strategy
Class Inflector

java.lang.Object
  extended by org.apache.cxf.binding.http.strategy.Inflector
Direct Known Subclasses:
EnglishInflector

public class Inflector
extends Object


Constructor Summary
Inflector()
           
 
Method Summary
 void addIrregular(String orig, String replacement)
           
 void addPlural(String regex, String replacement)
           
 void addSingular(String regex, String replacement)
           
 void addUncountable(String word)
           
 void addUncountable(String[] words)
           
 String pluralize(String orig)
           
 String singularlize(String orig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Inflector

public Inflector()
Method Detail

singularlize

public String singularlize(String orig)

pluralize

public String pluralize(String orig)

addPlural

public void addPlural(String regex,
                      String replacement)

addSingular

public void addSingular(String regex,
                        String replacement)

addIrregular

public void addIrregular(String orig,
                         String replacement)

addUncountable

public void addUncountable(String[] words)

addUncountable

public void addUncountable(String word)

Apache CXF API

Apache CXF