FileType Class

public final class FileType
extends ExpandableStringEnum<FileType>

The type of the file (for Linux files - Executable is used).

Field Summary

Modifier and Type Field and Description
static final FileType DLL

Static value Dll for FileType.

static final FileType EXE

Static value Exe for FileType.

static final FileType EXECUTABLE

Static value Executable for FileType.

static final FileType MSI

Static value Msi for FileType.

static final FileType SCRIPT

Static value Script for FileType.

static final FileType UNKNOWN

Static value Unknown for FileType.

Constructor Summary

Constructor Description
FileType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FileType value.

Method Summary

Modifier and Type Method and Description
static FileType fromString(String name)

Creates or finds a FileType from its string representation.

static Collection<FileType> values()

Gets known FileType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DLL

public static final FileType DLL

Static value Dll for FileType.

EXE

public static final FileType EXE

Static value Exe for FileType.

EXECUTABLE

public static final FileType EXECUTABLE

Static value Executable for FileType.

MSI

public static final FileType MSI

Static value Msi for FileType.

SCRIPT

public static final FileType SCRIPT

Static value Script for FileType.

UNKNOWN

public static final FileType UNKNOWN

Static value Unknown for FileType.

Constructor Details

FileType

@Deprecated
public FileType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FileType value.

Method Details

fromString

public static FileType fromString(String name)

Creates or finds a FileType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding FileType.

values

public static Collection values()

Gets known FileType values.

Returns:

known FileType values.

Applies to