| Enum Constant and Description |
|---|
PLAIN
Text is handled as plain: Any "<" is replaced by "< ", effectively escaping all HTML tags.
|
RAW
Text is not sanitized in any way
|
RICH
Text is handled as rich text: It is sanitized for the allowed markup
|
| Modifier and Type | Method and Description |
|---|---|
static TextMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextMode PLAIN
public static final TextMode RICH
public static final TextMode RAW
public static TextMode[] values()
for (TextMode c : TextMode.values()) System.out.println(c);
public static TextMode 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