org.javagen.agile.core.util
Class StringUtil

java.lang.Object
  extended by org.javagen.agile.core.util.StringUtil

public class StringUtil
extends Object

String utils mostly for minipulating names.

Author:
Richard Easterling

Constructor Summary
StringUtil()
           
 
Method Summary
static String camelBackName(String anyString)
          strips blank/special characters from a string and makes first char after a special character upper case (excluding the very first character of the string)
static String lastToken(String tokens, char deliniator)
           
static String makeClassName(String anyString)
          strips blank/special characters from a string and makes first char after a special character upper case (except the very first character of the string)
static String makeFirstLetterLowerCase(String anyString)
          makes the first Letter UpperCase in a string
static String makeFirstLetterUpperCase(String anyString)
          makes the first Letter UpperCase in a string
static List<String> tokensToList(String tokens, String delim)
           
static String toPluralName(String name)
          Adds 's' to the end of a name.
static String toSingularName(String name)
          If name ends in 's', then 's' is removed from the name.
static Set<String> toStringSet(String[] array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

makeClassName

public static String makeClassName(String anyString)
strips blank/special characters from a string and makes first char after a special character upper case (except the very first character of the string)


makeFirstLetterLowerCase

public static String makeFirstLetterLowerCase(String anyString)
makes the first Letter UpperCase in a string


makeFirstLetterUpperCase

public static String makeFirstLetterUpperCase(String anyString)
makes the first Letter UpperCase in a string


camelBackName

public static String camelBackName(String anyString)
strips blank/special characters from a string and makes first char after a special character upper case (excluding the very first character of the string)


toPluralName

public static String toPluralName(String name)
Adds 's' to the end of a name.


toSingularName

public static String toSingularName(String name)
If name ends in 's', then 's' is removed from the name.


tokensToList

public static List<String> tokensToList(String tokens,
                                        String delim)

toStringSet

public static Set<String> toStringSet(String[] array)

lastToken

public static String lastToken(String tokens,
                               char deliniator)


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