# EnumerationMapEntry

Import: `import com.install4j.api.beaninfo.EnumerationMapEntry;`

```java
public class EnumerationMapEntry
```

Entry in an enumeration defined by [`EnumerationMapper`](EnumerationMapper.md).
An enumeration map entry maps a verbose description to an arbitrary object.
For primitive enumerated values, an instance of the corresponding wrapper class can be used for the object property.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getName()`](#getname) | `String` | Get the name of the map entry. |
| [`getObject()`](#getobject) | `Object` | Get the object mapped to the specified name. |
| [`getIcon()`](#geticon) | `Icon` | Get the icon that is to be displayed in the drop-down list in the IDE. |

### getName()

```java
public String getName()
```

Get the name of the map entry. This name is displayed in the install4j GUI.


**Returns:** the name

### getObject()

```java
public Object getObject()
```

Get the object mapped to the specified name.


**Returns:** the object

### getIcon()

```java
public Icon getIcon()
```

Get the icon that is to be displayed in the drop-down list in the IDE.


**Returns:** the icon or `null` if no icon is defined

## Constructors

| Signature | Description |
|---|---|
| [`EnumerationMapEntry(String, Object)`](#enumerationmapentry-string-object) | Construct a map entry. |
| [`EnumerationMapEntry(String, Object, Icon)`](#enumerationmapentry-string-object-icon) | Construct a map entry. |

### EnumerationMapEntry(String, Object)

```java
public EnumerationMapEntry(String name, Object object)
```

Construct a map entry.


**Parameters:**

- `name` — the name
- `object` — the object

### EnumerationMapEntry(String, Object, Icon)

```java
public EnumerationMapEntry(String name, Object object, Icon icon)
```

Construct a map entry.


**Parameters:**

- `name` — the name
- `object` — the object
- `icon` — the icon to be displayed in the drop-down list in the IDE, may be `null`

