public static enum FileAnalyzer.Genre extends java.lang.Enum<FileAnalyzer.Genre>
Enum Constant and Description |
---|
DATA
not xrefed - no context
|
HTML
not xrefed - summarizer context from original file
|
IMAGE
not xrefed - no context - used by diff/list
|
PLAIN
xrefed - line numbered context
|
XREFABLE
xrefed - summarizer context
|
Modifier and Type | Method and Description |
---|---|
static FileAnalyzer.Genre |
get(java.lang.String typeName)
Get the Genre for the given type name.
|
java.lang.String |
typeName()
Get the type name value used to tag lucence documents.
|
static FileAnalyzer.Genre |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileAnalyzer.Genre[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileAnalyzer.Genre PLAIN
public static final FileAnalyzer.Genre XREFABLE
public static final FileAnalyzer.Genre IMAGE
public static final FileAnalyzer.Genre DATA
public static final FileAnalyzer.Genre HTML
public static FileAnalyzer.Genre[] values()
for (FileAnalyzer.Genre c : FileAnalyzer.Genre.values()) System.out.println(c);
public static FileAnalyzer.Genre 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 java.lang.String typeName()
public static FileAnalyzer.Genre get(java.lang.String typeName)
typeName
- name to checknull
if it doesn't match any genre, the genre otherwise.typeName()