Serializable
, Comparable<NewsXMLParser.XHTMLMode>
public static enum NewsXMLParser.XHTMLMode extends Enum<NewsXMLParser.XHTMLMode>
Enum Constant | Description |
---|---|
ABORT |
abort the parsing on any non-whitelisted element or blacklisted attribute
|
ALLOW_ALL |
disable all whitelist and blacklist checks
|
REMOVE_ATTRIBUTE |
remove only the non-whitelisted element, remove only the blacklisted attribute
|
REMOVE_ELEMENT |
remove only the non-whitelisted element, or element containing a blacklisted attribute
|
SKIP_ENTRY |
skip the feed entry containing the non-whitelisted element or blacklisted attribute
|
Modifier and Type | Method | Description |
---|---|---|
static NewsXMLParser.XHTMLMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static NewsXMLParser.XHTMLMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewsXMLParser.XHTMLMode ABORT
public static final NewsXMLParser.XHTMLMode REMOVE_ELEMENT
public static final NewsXMLParser.XHTMLMode REMOVE_ATTRIBUTE
public static final NewsXMLParser.XHTMLMode SKIP_ENTRY
public static final NewsXMLParser.XHTMLMode ALLOW_ALL
public static NewsXMLParser.XHTMLMode[] values()
for (NewsXMLParser.XHTMLMode c : NewsXMLParser.XHTMLMode.values()) System.out.println(c);
public static NewsXMLParser.XHTMLMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null