Serializable
, Comparable<ErrorType>
public enum ErrorType extends Enum<ErrorType>
Enum Constant | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
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:
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 nameNullPointerException
- if the argument is nullCopyright © 2006–2018. All rights reserved.