Enum FileFormat
- All Implemented Interfaces:
Serializable
,Comparable<FileFormat>
,Constable
This enum lists all supported file formats.
- Author:
- Matthias Thimm
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the file format.Returns the extension of the file format.static FileFormat
Returns the file format instance that corresponds to the given abbrevationstatic Collection
<FileFormat> Returns a collection of file formats parsed from the given string which has to be in the format "[format1,...,formatn]".toString()
static FileFormat
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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
TGF
tgf -
APX
apx -
CNF
cnf
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
extension
Returns the extension of the file format.- Returns:
- the extension of the file format.
-
description
Returns the description of the file format.- Returns:
- the description of the file format.
-
toString
- Overrides:
toString
in classEnum<FileFormat>
-
getFileFormat
Returns the file format instance that corresponds to the given abbrevation- Parameters:
s
- some string describing a file format- Returns:
- the file format instance corresponding to the string.
-
getFileFormats
Returns a collection of file formats parsed from the given string which has to be in the format "[format1,...,formatn]".- Parameters:
s
- some string- Returns:
- a collection of file formats
-