|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
Object Enum<HtmlEscapeLevel> org.unbescape.html.HtmlEscapeLevel
public enum HtmlEscapeLevel
Levels defined for HTML escape/unescape operations:
For further information, see the Glossary and the References sections at the
documentation for the HtmlEscape
class.
Enum Constant Summary | |
---|---|
LEVEL_0_ONLY_MARKUP_SIGNIFICANT_EXCEPT_APOS
Level 0 escape: escape only markup-significant characters, excluding the apostrophe: <, >, & and " |
|
LEVEL_1_ONLY_MARKUP_SIGNIFICANT
Level 1 escape (XML-style): escape only markup-significant characters (including the apostrophe): <, >, &, " and ' |
|
LEVEL_2_ALL_NON_ASCII_PLUS_MARKUP_SIGNIFICANT
Level 2 escape: escape markup-significant characters plus all non-ASCII characters (result will always be ASCII). |
|
LEVEL_3_ALL_NON_ALPHANUMERIC
Level 3 escape: escape all non-alphanumeric characteres (escape all but those in the A-Z, a-z and 0-9 ranges). |
|
LEVEL_4_ALL_CHARACTERS
Level 4 escape: escape all characters, including alphanumeric. |
Method Summary | |
---|---|
static HtmlEscapeLevel |
forLevel(int level)
Utility method for obtaining an enum value from its corresponding int level value. |
int |
getEscapeLevel()
Return the int escape level. |
static HtmlEscapeLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HtmlEscapeLevel[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HtmlEscapeLevel LEVEL_0_ONLY_MARKUP_SIGNIFICANT_EXCEPT_APOS
public static final HtmlEscapeLevel LEVEL_1_ONLY_MARKUP_SIGNIFICANT
public static final HtmlEscapeLevel LEVEL_2_ALL_NON_ASCII_PLUS_MARKUP_SIGNIFICANT
public static final HtmlEscapeLevel LEVEL_3_ALL_NON_ALPHANUMERIC
public static final HtmlEscapeLevel LEVEL_4_ALL_CHARACTERS
Method Detail |
---|
public static HtmlEscapeLevel[] values()
for (HtmlEscapeLevel c : HtmlEscapeLevel.values()) System.out.println(c);
public static HtmlEscapeLevel valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static HtmlEscapeLevel forLevel(int level)
Utility method for obtaining an enum value from its corresponding int level value.
level
- the level
public int getEscapeLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |