|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.airavata.common.utils.StringUtil
public class StringUtil
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static String |
convertToJavaIdentifier(String name)
Converts a specified string to a Java identifier. |
static String |
getClassName(Class klass)
Returns the local class name of a specified class. |
static String |
getStackTraceInString(Throwable throwable)
|
static String |
incrementName(String oldName)
Creates a new name by incrementing the number after the underscore at the end of the old name. |
static String |
toString(Object object)
Converts object to String without worrying about null check. |
static String |
trimAndNullify(String string)
Trims a specified string, and makes it null if the result is empty string. |
static String |
trimSpaceInString(String oldName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static String toString(Object object)
object -
public static String trimAndNullify(String string)
string -
public static String trimSpaceInString(String oldName)
oldName -
public static String convertToJavaIdentifier(String name)
name -
public static String incrementName(String oldName)
oldName -
public static String getClassName(Class klass)
klass - The specified class
public static String getStackTraceInString(Throwable throwable)
throwable -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||