public enum FileFormat extends java.lang.Enum<FileFormat>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
description
The description of the file format.
|
private java.lang.String |
extension
The extension of the file format
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description()
Returns the description of the file format.
|
java.lang.String |
extension()
Returns the extension of the file format.
|
static FileFormat |
getFileFormat(java.lang.String s)
Returns the file format instance that corresponds to the given abbrevation
|
static java.util.Collection<FileFormat> |
getFileFormats(java.lang.String s)
Returns a collection of file formats parsed from the given string which
has to be in the format "[format1,...,formatn]".
|
java.lang.String |
toString() |
static FileFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFormat TGF
public static final FileFormat APX
public static final FileFormat CNF
private java.lang.String extension
private java.lang.String description
public static FileFormat[] values()
for (FileFormat c : FileFormat.values()) System.out.println(c);
public static FileFormat 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 extension()
public java.lang.String description()
public java.lang.String toString()
toString in class java.lang.Enum<FileFormat>public static FileFormat getFileFormat(java.lang.String s)
s - some string describing a file formatpublic static java.util.Collection<FileFormat> getFileFormats(java.lang.String s)
s - some string