public enum FileFilterDefinition extends java.lang.Enum<FileFilterDefinition>
Enum Constant and Description |
---|
QUERY_BQ
BasicQuery Query Files
|
QUERY_SQL
SQL Query Files
|
QUERY_TXT
Text Files
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
acceptedSuffixes
The accepted file name suffixes for the file filter
|
private java.lang.String |
description
The description of the file filter
|
private boolean |
isPreferredOption
Is this the preferred option within its set of patterns
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
acceptedSuffixes()
Get the accepted file name suffixes for the filter
|
java.lang.String |
description()
Get the description for the file filter
|
private java.lang.String |
formatDescription(java.lang.String pDescription,
java.lang.String[] suffixes)
Format the description to include a list of suffixes
|
boolean |
isPreferredOption()
Determine whether this is the preferred (default) option for a group of
file filters
|
static FileFilterDefinition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileFilterDefinition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFilterDefinition QUERY_BQ
public static final FileFilterDefinition QUERY_SQL
public static final FileFilterDefinition QUERY_TXT
private final java.lang.String description
private final java.lang.String[] acceptedSuffixes
private boolean isPreferredOption
public static FileFilterDefinition[] values()
for (FileFilterDefinition c : FileFilterDefinition.values()) System.out.println(c);
public static FileFilterDefinition 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 nullprivate java.lang.String formatDescription(java.lang.String pDescription, java.lang.String[] suffixes)
pDescription
- The descriptionsuffixes
- The file name suffixes this filter acceptspublic java.lang.String description()
public java.lang.String[] acceptedSuffixes()
public boolean isPreferredOption()