Package org.ossreviewtoolkit.model
Enum FileFormat
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum FileFormat extends Enum<FileFormat>
An enumeration of supported file formats for (de-)serialization, their primary fileExtension and optional aliases (not including the dot).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFileFormat.Companion
-
Field Summary
Fields Modifier and Type Field Description private final List<String>fileExtensionsprivate final ObjectMappermapperprivate final StringfileExtensionprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<FileFormat>entries
-
Method Summary
Modifier and Type Method Description final FileFormatvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<FileFormat>values()Returns an array containing the constants of this enum type, in the order they're declared. final List<String>getFileExtensions()The list of file extensions used by this file format. final ObjectMappergetMapper()final StringgetFileExtension()final EnumEntries<FileFormat>getEntries()An enumeration of supported file formats for (de-)serialization, their primary fileExtension and optional aliases (not including the dot). -
-
Method Detail
-
valueOf
final FileFormat valueOf(String value)
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.)
-
values
final Array<FileFormat> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getFileExtensions
final List<String> getFileExtensions()
The list of file extensions used by this file format.
-
getMapper
final ObjectMapper getMapper()
-
getFileExtension
final String getFileExtension()
-
getEntries
final EnumEntries<FileFormat> getEntries()
An enumeration of supported file formats for (de-)serialization, their primary fileExtension and optional aliases (not including the dot).
-
-
-
-