|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Transformer | |
---|---|
org.rythmengine.utils |
Uses of Transformer in org.rythmengine.utils |
---|
Methods in org.rythmengine.utils with annotations of type Transformer | |
---|---|
static String |
S.camelCase(Object obj)
Turn an object's String representation into Camel Case |
static String |
S.capFirst(Object o)
Make the first character be uppercase of the given object's string representation |
static String |
S.capitalizeWords(Object o)
Capitalize the first character of every word of the specified object's string representation. |
static String[] |
S.divide(Object o,
String sep)
Bridge String.split() method to Object |
static boolean |
S.eq(String s1,
String s2)
Alias of S.isEqual(String, String) |
static RawData |
S.escape(Object o)
Return a RawData type wrapper of
an object without escaping or if the current template exists
return the escape specified by the current escape scheme of the current
render template
|
static RawData |
S.escape(Object o,
Object escape)
Return a RawData type wrapper of
an object with specified escaping scheme. |
static RawData |
S.escapeCSV(Object o)
Return a RawData type wrapper of
an object with CSV escaping
|
static RawData |
S.escapeHTML(Object o)
Return a RawData type wrapper of
an object with HTML escaping
|
static RawData |
S.escapeJavaScript(Object o)
Return a RawData type wrapper of
an object with JavaScript escaping
|
static RawData |
S.escapeJS(Object o)
Alias of S.escapeJavaScript(Object) |
static RawData |
S.escapeJSON(Object o)
Return a RawData type wrapper of
an object with JSON escaping
|
static RawData |
S.escapeXML(Object o)
Return a RawData type wrapper of
an object with XML escaping
|
static String |
S.format(Date date)
Format a date with engine's default format corresponding to the engine's locale configured |
static String |
S.format(Date date,
String pattern)
Format a date with specified pattern |
static String |
S.format(Date date,
String pattern,
Locale locale)
Transformer. |
static String |
S.format(Date date,
String pattern,
Locale locale,
String timezone)
Transformer. |
static String |
S.format(Number number,
String pattern)
Format a number with specified pattern |
static String |
S.format(Number number,
String pattern,
Locale locale)
Format the number with specified pattern, language and locale |
static String |
S.formatCurrency(Object data)
Transformer method. |
static String |
S.formatCurrency(Object data,
String currencyCode)
Transformer method. |
static String |
S.formatSize(Object data)
Format size (e.g. |
static String |
S.i18n(String key)
|
static String |
S.i18n(String key,
Object... args)
Transformer method. |
static String |
S.join(Iterable itr)
Join items in an iterable with "," |
static String |
S.join(Iterable itr,
String sep)
Join an iterable with separator |
static int |
S.len(Object o)
get length of specified object If o is a Collection or Map, then return size of it If o is an array, then return length of it Otherwise return length() of String representation of the object |
static String |
S.lowerCase(Object o)
Bridge String.toUpperCase() method to Object |
static String |
S.lowerFirst(Object o)
Make the first character be lowercase of the given object's string representation |
static boolean |
S.ne(String s1,
String s2)
Alias of S.isNotEqual(String, String) |
static RawData |
S.nl2br(RawData data)
Change line break in the data string into |
static String |
S.noAccents(Object o)
Replace accent character (usually found in European languages) of the String representation of a give object to non-accent char. |
static RawData |
S.raw(Object o)
Return a RawData type wrapper of
an object without any escaping. |
static String |
S.upperCase(Object o)
Bridge String.toUpperCase() method to Object |
static String |
S.urlEncode(Object data)
encode using utf-8 |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |