public class CAFFunctions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX
Standard prefix for CAF functions ("caf").
|
Constructor and Description |
---|
CAFFunctions() |
Modifier and Type | Method and Description |
---|---|
static String |
cid(String id)
Creates client-side control id from server-side id.
|
static String |
scid(String s)
Creates selector safe client-side control id from server-side id.
|
static Boolean |
xb(Object o)
Validates that the specified value is a boolean.
|
static String |
xh(String s)
Escapes the specified string to be safe for use in html or html-attribute content.
|
static String |
xj(String s)
Escapes the specified string to be safe for use in a javascript string.
|
static Number |
xn(Object o)
Validates that the specified value is a number.
|
static String |
xs(String s)
Validates that the specified url starts with a safe url scheme.
|
static String |
xu(String s)
Escapes the specified string to be safe for use in a url-parameter name or value.
|
public static final String PREFIX
public static String cid(String id)
id
- Server-side id.public static String scid(String s)
id
- Server-side id.public static String xh(String s)
s
- String to escape.public static String xu(String s)
s
- String to escape.public static String xs(String s)
s
- URL to validate.public static String xj(String s)
s
- String to escape.public static Boolean xb(Object o)
o
- Value to validate.