Package org.htmlcleaner.audit
Enum Class ErrorType
- All Implemented Interfaces:
Serializable
,Comparable<ErrorType>
,Constable
Possible error codes (read messages) that cleaner uses to inform clients about reasons/actions that modification
involves.
- Author:
- Konstantin Burov (aectann@gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe tag was deprecated and current cleaner mode doesn't allows this.Tag which existence is critical for the current is missing.The tag wasn't found on list of allowed tags, thus it was removed.Missing parent tag was added for current (i.e.No matching close token was found for the open tag.Second instance of an unique tag was found, most likely it was removed.The tag is unknown and current cleaner mode doesn't allows this.This tag have bad child that shouldn't be here. -
Method Summary
-
Enum Constant Details
-
FatalTagMissing
Tag which existence is critical for the current is missing. Most likely, current tag was pruned. Unlike theRequiredParentMissing
this reports the problem when cleaner removed the tag instead of creating as parent. SeeTagInfo
for more detailed description of fatal and required tags.Example:
- <option> tag without parent select
- <tr> tag without parent <table>
- ...
-
NotAllowedTag
The tag wasn't found on list of allowed tags, thus it was removed. -
RequiredParentMissing
Missing parent tag was added for current (i.e. tbody for tr). -
UnclosedTag
No matching close token was found for the open tag. Tag was closed automatically.Example:
<p>Some text..
Unclosed <p> tag.
-
UniqueTagDuplicated
Second instance of an unique tag was found, most likely it was removed.Example:
<head> <title>Some text</title> <title>Some more text</title> </head>
-
Deprecated
The tag was deprecated and current cleaner mode doesn't allows this. The tag was removed.Example:
- <u>
- <s>
- <srtike>
- ....
-
UnpermittedChild
This tag have bad child that shouldn't be here. Thus the tag is closed automatically to avoid such inclusion.Example:
<p>Some text <table>...</table><p>
<table> is not allowed to be child of <p>, thus <p> is closed before the <table>
-
Unknown
The tag is unknown and current cleaner mode doesn't allows this. The tag was removed.Example:
- <any>
- <tag>
- ....
-
-
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
-