|
|||||||||||
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 java.lang.String |
addPrefix(java.lang.String string)
Adds a CDM prefix to the provided string, if its does not have it. |
static java.lang.String |
escapeString(java.lang.String string)
Escapes the '.' characters in the provided string placing a '\' before them. |
static java.lang.String |
escapeString(java.lang.String string,
java.lang.String separatorChar,
char escapeChar)
Escapes the provided string using the provided parameters. |
static java.lang.String |
getAttributePath(org.w3c.dom.Node attr)
Returns the full path from the hierarchy's root to the specified node. |
static java.lang.String |
removeEscapeChars(java.lang.String escapedString)
Removes the '\' escape characters before each '.' in the input string. |
static java.lang.String |
removePrefix(java.lang.String prefixedString)
Removes any CDM prefix present in the provided string. |
static java.lang.String |
toLowercaseFirstLetter(java.lang.String name)
Makes the first letter of the provided string lower. |
static java.lang.String |
toUpperCaseFirstLetter(java.lang.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 java.lang.String toUpperCaseFirstLetter(java.lang.String name)
name
- input string.
public static java.lang.String toLowercaseFirstLetter(java.lang.String name)
name
- input string.
public static java.lang.String escapeString(java.lang.String string, java.lang.String separatorChar, char escapeChar)
string
- input string.separatorChar
- the separator char which must be escaped.escapeChar
- the char used for escaping.
public static java.lang.String escapeString(java.lang.String string)
string
- input string.
public static java.lang.String removePrefix(java.lang.String prefixedString)
prefixedString
- input string.
public static java.lang.String addPrefix(java.lang.String string)
string
- input string.
public static java.lang.String removeEscapeChars(java.lang.String escapedString)
escapedString
- the escaped input string.
public static java.lang.String getAttributePath(org.w3c.dom.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 |