org.mule.devkit.generation.utils
Class NameUtils

java.lang.Object
  extended by org.mule.devkit.generation.utils.NameUtils

public class NameUtils
extends Object


Constructor Summary
NameUtils()
           
 
Method Summary
static String camel(String uncamelCaseName)
           
static String friendlyNameFromCamelCase(String camelCaseName)
           
static boolean isUncountable(String word)
          Return true if the word is uncountable.
static String pluralize(String word)
          Return the pluralized version of a word.
static String singularize(String word)
          Return the singularized version of a word.
static String uncamel(String camelCaseName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameUtils

public NameUtils()
Method Detail

camel

public static String camel(String uncamelCaseName)

uncamel

public static String uncamel(String camelCaseName)

friendlyNameFromCamelCase

public static String friendlyNameFromCamelCase(String camelCaseName)

pluralize

public static String pluralize(String word)
Return the pluralized version of a word.

Parameters:
word - The word
Returns:
The pluralized word

singularize

public static String singularize(String word)
Return the singularized version of a word.

Parameters:
word - The word
Returns:
The singularized word

isUncountable

public static boolean isUncountable(String word)
Return true if the word is uncountable.

Parameters:
word - The word
Returns:
True if it is uncountable


Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.