org.javagen.agile.oo.naming
Interface Pluralisation

All Known Subinterfaces:
OONamingService
All Known Implementing Classes:
JavaNamingService, RegularPlurals

public interface Pluralisation

Try to convert singular nouns to plural nouns and back again. This allows using good grammer in naming properties and references with regard to cardinality.

Author:
Richard Easterling

Method Summary
 String toPlural(String singular)
          Takes a case-sensitive name and makes it plural.
 String toSingular(String plural)
          Takes a case-sensitive name and makes it singular.
 

Method Detail

toSingular

String toSingular(String plural)
Takes a case-sensitive name and makes it singular. This method preserves camel-back naming conventions generally used with class names. Thus input names may need to be converted to be recognized.


toPlural

String toPlural(String singular)
Takes a case-sensitive name and makes it plural.



Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.