public class StringHelper
extends java.lang.Object
| Constructor and Description |
|---|
StringHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getPackageName(java.lang.String className)
Returns the package portion of the specified class
|
static java.lang.String |
getShortClassName(java.lang.String className)
Returns the name of a class without the package name.
|
static boolean |
isEmpty(java.lang.String aString)
Checks if a string is null or empty.
|
public static boolean isEmpty(java.lang.String aString)
aString - the string to be checked.true if the string is null or empty after trim,
false otherwise.public static java.lang.String getPackageName(java.lang.String className)
className - the name of the class from which to extract the packagepublic static java.lang.String getShortClassName(java.lang.String className)
fully - qualified classnameCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.