# FileSetSetup

Import: `import com.install4j.api.context.FileSetSetup;`

```java
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`](Context.md#getfilesets) and [`Context.getFileSetById`](Context.md#getfilesetbyid-string)

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`isSelected()`](#isselected) | `boolean` | Returns whether the file set is selected for installation. |
| [`setSelected(boolean)`](#setselected-boolean) | `void` | Sets whether the file set should be installed or not. |
| [`getName()`](#getname) | `String` | Returns the name of this file set. |
| [`getId()`](#getid) | `String` | The ID of the file set. |

### isSelected()

```java
boolean isSelected()
```

Returns whether the file set is selected for installation. By default, all file sets will be installed.


**Returns:** `true` or `false`.

### setSelected(boolean)

```java
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()

```java
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()

```java
String getId()
```

The ID of the file set. You can display component IDs in the install4j IDE.


**Returns:** the ID

