FileSetSetup (install4j API)
Description: declaration: package: com.install4j.api.context, interface: FileSetSetup

Package com.install4j.api.context

# Interface FileSetSetup

public interface FileSetSetup
This interface provides information about file sets. File sets are configured on the "Define Distribution Tree" tab in the install4j IDE.

Objects of this type are returned by `Context.getFileSets()` and `Context.getFileSetById(String)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getId()`
  The ID of the file set.
  `String`
  `getName()`
  Returns the name of this file set.
  `boolean`
  `isSelected()`
  Returns whether the file set is selected for installation.
  `void`
  `setSelected(boolean selected)`
  Sets whether the file set should be installed or not.

- ## Method Details

  - ### isSelected

    boolean isSelected()
    Returns whether the file set is selected for installation. By default, all file sets will be installed.
    Returns:
      `true` or `false`.

  - ### setSelected

    void setSelected(boolean selected)
    Sets whether the file set should be installed or not. This method only has an effect when called before the "Install files" action.
    Parameters:
      `selected` - the new selection state

  - ### getName

    String getName()
    Returns the name of this file set. This is the name that you have specified in the install4j IDE.
    Returns:
      the name

  - ### getId

    String getId()
    The ID of the file set. You can display component IDs in the install4j IDE.
    Returns:
      the ID