|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jps.util.RSMUtil
public class RSMUtil
Contains general utilities.
Constructor Summary | |
---|---|
RSMUtil()
|
Method Summary | |
---|---|
static java.lang.String |
convertToCamelCase(java.lang.String inputString)
Converts an input string such as " the project name" to "theProjectName" |
static java.lang.String |
firstCharToLowerCase(java.lang.String name)
Changes the first letter of the specified string to lower case |
static java.lang.String |
firstCharToUpperCase(java.lang.String name)
Capitalizes the first letter of the specified string |
static java.lang.String |
getDate(java.util.Locale currentLocale)
Returns the current date as a string formatted the specified locale |
static java.lang.String |
getPath(java.lang.String name)
Given an input string of the type "com.company.project.AClass", getPath will return "com.company.project" (or an empty string if the input string is "AClass"). |
static java.lang.String |
getPath(java.lang.String name,
char fileSeparator)
Given an input string of the type "com? |
static java.lang.String |
getSimpleName(java.lang.String name)
Given an input string of the type "com.company.project.AClass", getSimpleName will return "AClass" (or the string itself if the input string is "AClass"). |
static java.lang.String |
getSimpleName(java.lang.String name,
char fileSeparator)
Given an input string of the type "com? |
static java.lang.String |
replaceAllSubstrings(java.lang.String inputString,
java.lang.String fromExp,
java.lang.String toExp)
Replaces in the input string all occurences of the from expression by the to expression |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSMUtil()
Method Detail |
---|
public static java.lang.String getPath(java.lang.String name)
name
- The input string (e.g. "com.company.project.AClass")
public static java.lang.String getPath(java.lang.String name, char fileSeparator)
name
- The input string (e.g. "com?company?project?AClass")fileSeparator
- The file separator (e.g. "?")
public static java.lang.String getSimpleName(java.lang.String name)
name
- The input string (e.g. "com.company.project.AClass")
public static java.lang.String getSimpleName(java.lang.String name, char fileSeparator)
name
- The input string (e.g. "com?company?project?AClass")fileSeparator
- The file separator (e.g. "?")
public static java.lang.String firstCharToUpperCase(java.lang.String name)
name
- The input string
public static java.lang.String firstCharToLowerCase(java.lang.String name)
name
- The input string
public static java.lang.String getDate(java.util.Locale currentLocale)
currentLocale
- The locale to use
public static java.lang.String replaceAllSubstrings(java.lang.String inputString, java.lang.String fromExp, java.lang.String toExp)
inputString
- The input stringfromExp
- The substring to replacetoExp
- The replacement text
public static java.lang.String convertToCamelCase(java.lang.String inputString)
inputString
- The input string (e.g. " the project name")
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |