- All Implemented Interfaces:
Serializable, Comparable<NewsXMLParser.XHTMLMode>, java.lang.constant.Constable
- Enclosing class:
NewsXMLParser
The action taken when encountering a non-whitelisted XHTML element or blacklisted attribute in the feed content.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbort the parsing on any non-whitelisted element or blacklisted attribute.Disable all whitelist and blacklist checks.Remove only the non-whitelisted element, remove only the blacklisted attribute.Remove only the non-whitelisted element, or element containing a blacklisted attribute.Skip the feed entry containing the non-whitelisted element or blacklisted attribute.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic NewsXMLParser.XHTMLModeReturns the enum constant of this class with the specified name.static NewsXMLParser.XHTMLMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
ABORT
Abort the parsing on any non-whitelisted element or blacklisted attribute.REMOVE_ELEMENT
Remove only the non-whitelisted element, or element containing a blacklisted attribute.REMOVE_ATTRIBUTE
Remove only the non-whitelisted element, remove only the blacklisted attribute.SKIP_ENTRY
Skip the feed entry containing the non-whitelisted element or blacklisted attribute.ALLOW_ALL
Disable all whitelist and blacklist checks.
Constructor Details
XHTMLMode
private XHTMLMode()
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null