|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.cdm.core.CDMUtils
public class CDMUtils
This class contains several utility methods used by the CDM Components.
Constructor Summary | |
---|---|
CDMUtils()
|
Method Summary | |
---|---|
static String |
addPrefix(String string)
Adds a CDM prefix to the provided string, if its does not have it. |
static String |
escapeString(String string)
Escapes the '.' characters in the provided string placing a '\' before them. |
static String |
escapeString(String string,
String separatorChar,
char escapeChar)
Escapes the provided string using the provided parameters. |
static String |
getAttributePath(Node attr)
Returns the full path from the hierarchy's root to the specified node. |
static String |
removeEscapeChars(String escapedString)
Removes the '\' escape characters before each '.' in the input string. |
static String |
removePrefix(String prefixedString)
Removes any CDM prefix present in the provided string. |
static String |
toLowercaseFirstLetter(String name)
Makes the first letter of the provided string lower. |
static String |
toUpperCaseFirstLetter(String name)
Capitalizes the first letter in the provided string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDMUtils()
Method Detail |
---|
public static String toUpperCaseFirstLetter(String name)
name
- input string.
public static String toLowercaseFirstLetter(String name)
name
- input string.
public static String escapeString(String string, String separatorChar, char escapeChar)
string
- input string.separatorChar
- the separator char which must be escaped.escapeChar
- the char used for escaping.
public static String escapeString(String string)
string
- input string.
public static String removePrefix(String prefixedString)
prefixedString
- input string.
public static String addPrefix(String string)
string
- input string.
public static String removeEscapeChars(String escapedString)
escapedString
- the escaped input string.
public static String getAttributePath(Node attr)
attr
- the node which path we want.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |