|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ErrorType> org.htmlcleaner.audit.ErrorType
public enum ErrorType
Possible error codes (read messages) that cleaner uses to inform clients about reasons/actions that modification involves.
Enum Constant Summary | |
---|---|
Deprecated
The tag was deprecated and current cleaner mode doesn't allows this. |
|
FatalTagMissing
Tag which existence is critical for the current is missing. |
|
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. |
|
UnclosedTag
No matching close token was found for the open tag. |
|
UniqueTagDuplicated
Second instance of an unique tag was found, most likely it was removed. |
|
Unknown
The tag is unknown and current cleaner mode doesn't allows this. |
|
UnpermittedChild
This tag have bad child that shouldn't be here. |
Method Summary | |
---|---|
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ErrorType FatalTagMissing
RequiredParentMissing
this reports the problem when cleaner removed the tag instead of creating as
parent. See TagInfo
for more detailed description of fatal and required tags.
Example:
public static final ErrorType NotAllowedTag
public static final ErrorType RequiredParentMissing
public static final ErrorType UnclosedTag
Example:
<p>Some text..
Unclosed <p> tag.
public static final ErrorType UniqueTagDuplicated
Example:
<head> <title>Some text</title> <title>Some more text</title> </head>
public static final ErrorType Deprecated
Example:
public static final ErrorType UnpermittedChild
Example:
<p>Some text <table>...</table><p>
<table> is not allowed to be child of <p>, thus <p> is closed before the <table>
public static final ErrorType Unknown
Example:
Method Detail |
---|
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |