public class JsUtils extends Object
Helper class to ease JavaScript integration.
| Constructor and Description |
|---|
JsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static CharSequence |
array(CharSequence... args) |
static String |
doubleQuotes(CharSequence stringToDoubleQuote)
Double quotes the given string (eg.
|
static String |
doubleQuotes(CharSequence stringToDoubleQuote,
boolean escapeDoubleQuote)
Double quotes the given string (eg.
|
static String |
escapeDoubleQuote(CharSequence stringToDoubleQuote) |
static String |
escapeQuote(CharSequence stringToQuote) |
static String |
implode(EventLabel... eventLabels)
Converts the given array of
EventLabel to a String. |
static String |
json(Serializable jsonObject)
Method using the jackson API to generate a json representation of your
Java object
|
static String |
quotes(CharSequence stringToQuote)
Quotes the given string (eg.
|
static String |
quotes(CharSequence stringToQuote,
boolean escapeQuote)
Quotes the given string (eg.
|
static String |
string(int value)
Converts an int to a String.
|
public static CharSequence array(CharSequence... args)
public static String doubleQuotes(CharSequence stringToDoubleQuote)
public static String doubleQuotes(CharSequence stringToDoubleQuote, boolean escapeDoubleQuote)
public static String escapeDoubleQuote(CharSequence stringToDoubleQuote)
public static String escapeQuote(CharSequence stringToQuote)
public static String implode(EventLabel... eventLabels)
EventLabel to a String.public static String json(Serializable jsonObject) throws IOException
jsonObject - A serializable objectIOException - Exeption during the processpublic static String quotes(CharSequence stringToQuote)
public static String quotes(CharSequence stringToQuote, boolean escapeQuote)
public static String string(int value)
Copyright © 2009-2012. All Rights Reserved.