org.slim3.commons.util
Class StringUtil

java.lang.Object
  extended by org.slim3.commons.util.StringUtil

public final class StringUtil
extends Object

A utility class for String.

Version:
3.0
Author:
higa

Method Summary
static String capitalize(String text)
          Capitalizes the text according to JavaBeans specification.
static String decapitalize(String text)
          Decapitalizes the text according to JavaBeans specification.
static boolean isEmpty(String text)
          Determines if the text is empty.
static String[] split(String text, String delim)
          Splits the text by the delimiter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public static boolean isEmpty(String text)
Determines if the text is empty.

Parameters:
text - the text
Returns:
whether text is empty

decapitalize

public static String decapitalize(String text)
Decapitalizes the text according to JavaBeans specification.

Parameters:
text - the text
Returns:
the decapitalized text

capitalize

public static String capitalize(String text)
Capitalizes the text according to JavaBeans specification.

Parameters:
text - the text
Returns:
the capitalized text

split

public static String[] split(String text,
                             String delim)
Splits the text by the delimiter.

Parameters:
text - the text
delim - the delimiter
Returns:
the array of strings


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.