public static enum StringUtil.JsStringEncCompatibility extends java.lang.Enum<StringUtil.JsStringEncCompatibility>
StringUtil.jsStringEnc(String, JsStringEncCompatibility, JsStringEncQuotation)
.Enum Constant and Description |
---|
JAVA_SCRIPT
Output is expected to be used in JavaScript, not in JSON.
|
JAVA_SCRIPT_OR_JSON
Output is expected to be used both in JSON and JavaScript.
|
JSON
Output is expected to be used in JSON, not in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
static StringUtil.JsStringEncCompatibility |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StringUtil.JsStringEncCompatibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringUtil.JsStringEncCompatibility JAVA_SCRIPT
public static final StringUtil.JsStringEncCompatibility JSON
public static final StringUtil.JsStringEncCompatibility JAVA_SCRIPT_OR_JSON
public static StringUtil.JsStringEncCompatibility[] values()
for (StringUtil.JsStringEncCompatibility c : StringUtil.JsStringEncCompatibility.values()) System.out.println(c);
public static StringUtil.JsStringEncCompatibility valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null