org.nakedobjects.metamodel.commons.names
Class NameConvertorUtils

java.lang.Object
  extended by org.nakedobjects.metamodel.commons.names.NameConvertorUtils

public class NameConvertorUtils
extends java.lang.Object


Constructor Summary
NameConvertorUtils()
           
 
Method Summary
static java.lang.String naturalName(java.lang.String name)
          Returns a word spaced version of the specified name, so there are spaces between the words, where each word starts with a capital letter.
static java.lang.String pluralName(java.lang.String name)
           
static java.lang.String simpleName(java.lang.String name)
          Return a lower case, non-spaced version of the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameConvertorUtils

public NameConvertorUtils()
Method Detail

simpleName

public static java.lang.String simpleName(java.lang.String name)
Return a lower case, non-spaced version of the specified name.


naturalName

public static java.lang.String naturalName(java.lang.String name)
Returns a word spaced version of the specified name, so there are spaces between the words, where each word starts with a capital letter. E.g., "NextAvailableDate" is returned as "Next Available Date".


pluralName

public static java.lang.String pluralName(java.lang.String name)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.