public static enum TextSnippet.ResultClass extends java.lang.Enum<TextSnippet.ResultClass>
Enum Constant and Description |
---|
ERROR_NO_HASH_GIVEN |
ERROR_NO_MATCH |
ERROR_PARSER_FAILED |
ERROR_PARSER_NO_LINES |
ERROR_RESOURCE_LOADING |
ERROR_SOURCE_LOADING |
SOURCE_CACHE |
SOURCE_FILE |
SOURCE_METADATA |
SOURCE_WEB |
Modifier and Type | Field and Description |
---|---|
private boolean |
fail |
Modifier and Type | Method and Description |
---|---|
boolean |
fail() |
static TextSnippet.ResultClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextSnippet.ResultClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextSnippet.ResultClass SOURCE_CACHE
public static final TextSnippet.ResultClass SOURCE_FILE
public static final TextSnippet.ResultClass SOURCE_WEB
public static final TextSnippet.ResultClass SOURCE_METADATA
public static final TextSnippet.ResultClass ERROR_NO_HASH_GIVEN
public static final TextSnippet.ResultClass ERROR_SOURCE_LOADING
public static final TextSnippet.ResultClass ERROR_RESOURCE_LOADING
public static final TextSnippet.ResultClass ERROR_PARSER_FAILED
public static final TextSnippet.ResultClass ERROR_PARSER_NO_LINES
public static final TextSnippet.ResultClass ERROR_NO_MATCH
public static TextSnippet.ResultClass[] values()
for (TextSnippet.ResultClass c : TextSnippet.ResultClass.values()) System.out.println(c);
public static TextSnippet.ResultClass valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean fail()