|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.tools.campaigns.CampaignUtil
The CampaignUtil class provides some utility methods that are used by campaigns.
Field Summary | |
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
CampaignUtil()
|
Method Summary | |
static java.lang.Integer |
getLanguageIdFromLocaleName(java.lang.String localeName)
The getLanguageIdFromLocaleName method takes the locale, and returns the relative language ID. |
static java.lang.String |
getLocaleNameFromLanguageId(java.lang.String languageId)
The getLocaleNameFromLanguageId method takes the language ID, and returns the relative locale name. |
static java.lang.String |
normalizeStringDate(java.lang.String stringDate)
The normalizeStringDate method takes the date in string format, and normalize it. |
static java.lang.String |
stripBrackets(java.lang.String s)
The stripBrackets method takes the string, and removes its bracket wrapped around it. |
static java.lang.String |
stripQuotes(java.lang.String s)
The stripQuotes method takes the string, and removes its quotes wrapped around it. |
static java.lang.String |
stripSingleQuotes(java.lang.String s)
The stripSingleQuotes method takes the string, and removes its single quotes wrapped around it. |
static java.lang.String |
substitute(java.lang.String message,
int arg1)
Substitutes message parameters with arguments. |
static java.lang.String |
substitute(java.lang.String message,
int arg1,
int arg2)
Substitutes message parameters with arguments. |
static java.lang.String |
substitute(java.lang.String message,
java.lang.Object[] arguments)
Substitutes message parameters with arguments. |
static java.lang.String |
substitute(java.lang.String message,
java.lang.String arg1)
Substitutes message parameters with arguments. |
static java.lang.String |
substitute(java.lang.String message,
java.lang.String arg1,
java.lang.String arg2)
Substitutes message parameters with arguments. |
static java.math.BigDecimal |
toBigDecimal(java.lang.String value)
Converts a string value to BigDecimal. |
static boolean |
toBoolean(java.lang.String value)
Converts a string value to boolean. |
static java.lang.Integer |
toInteger(java.lang.String value)
Converts a string value to Ingeger. |
static java.lang.Long |
toLong(java.lang.String value)
Converts a string value to Long. |
static java.util.Vector |
toVector(java.lang.Object value)
Converts an object to a Vector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CampaignUtil()
Method Detail |
public static java.lang.Integer getLanguageIdFromLocaleName(java.lang.String localeName)
localeName
- The name of the locale.public static java.lang.String getLocaleNameFromLanguageId(java.lang.String languageId)
languageId
- The language ID.public static java.lang.String normalizeStringDate(java.lang.String stringDate)
stringDate
- The date string.public static java.lang.String stripBrackets(java.lang.String s)
s
- The string with brackets.public static java.lang.String stripQuotes(java.lang.String s)
s
- The string with quotes.public static java.lang.String stripSingleQuotes(java.lang.String s)
s
- The string with single quotes.public static java.lang.String substitute(java.lang.String message, int arg1)
message
- A text message with imbedded parameters.arg1
- An argument.public static java.lang.String substitute(java.lang.String message, int arg1, int arg2)
message
- A text message with imbedded parameters.arg1
- An argument.arg2
- An argument.public static java.lang.String substitute(java.lang.String message, java.lang.Object[] arguments)
message
- A text message with imbedded parameters.arguments
- An array of arguments.public static java.lang.String substitute(java.lang.String message, java.lang.String arg1)
message
- A text message with imbedded parameters.arg1
- An argument.public static java.lang.String substitute(java.lang.String message, java.lang.String arg1, java.lang.String arg2)
message
- A text message with imbedded parameters.arg1
- An argument.arg2
- An argument.public static java.math.BigDecimal toBigDecimal(java.lang.String value)
null
.public static boolean toBoolean(java.lang.String value)
true
if the string is "true"
.public static java.lang.Integer toInteger(java.lang.String value)
null
.public static java.lang.Long toLong(java.lang.String value)
null
.public static java.util.Vector toVector(java.lang.Object value)
null
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |