public static enum NewsXMLParser.XHTMLMode extends Enum<NewsXMLParser.XHTMLMode>
| Enum Constant and Description |
|---|
ABORTabort the parsing on any non-whitelisted element or blacklisted attribute |
ALLOW_ALLdisable all whitelist and blacklist checks |
REMOVE_ATTRIBUTEremove only the non-whitelisted element, remove only the blacklisted attribute |
REMOVE_ELEMENTremove only the non-whitelisted element, or element containing a blacklisted attribute |
SKIP_ENTRYskip the feed entry containing the non-whitelisted element or blacklisted attribute |
| Modifier and Type | Method and 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 ALLOW_ALL
public static final NewsXMLParser.XHTMLMode REMOVE_ATTRIBUTE
public static final NewsXMLParser.XHTMLMode REMOVE_ELEMENT
public static final NewsXMLParser.XHTMLMode SKIP_ENTRY
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 nullpublic static NewsXMLParser.XHTMLMode[] values()
for (NewsXMLParser.XHTMLMode c : NewsXMLParser.XHTMLMode.values()) System.out.println(c);