# ScriptProperty

Import: `import com.install4j.api.beans.ScriptProperty;`

```java
public class ScriptProperty implements Serializable
```

Property type for script properties to be used in beans.
You can define your own script properties where the user can configure a script in the install4j GUI that is
compiled by the install4j compiler and executed at runtime on your request.
A script is run via the context by invoking `Context.runScript` with the expected parameters for the script.
Parameters are configured via the corresponding BeanInfo class. The `ScriptPropertyDescriptor` class allows you to
create a property descriptor that contains information regarding return type and script parameters.


**See also:**

- [Context.runScript](../context/Context.md#runscript-scriptproperty-bean-object)
- [ScriptPropertyDescriptor](../beaninfo/ScriptPropertyDescriptor.md)

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getValue()`](#getvalue) | `String` | Required by the framework. |
| [`setValue(String)`](#setvalue-string) | `void` | Required by the framework. |
| [`toString()`](#tostring) | `String` |  |
| [`equals(Object)`](#equals-object) | `boolean` |  |
| [`hashCode()`](#hashcode) | `int` |  |

### getValue()

```java
public String getValue()
```

Required by the framework. Do not call directly.

### setValue(String)

```java
public void setValue(String value)
```

Required by the framework. Do not call directly.

### toString()

```java
public String toString()
```

### equals(Object)

```java
public boolean equals(Object o)
```

### hashCode()

```java
public int hashCode()
```

## Constructors

| Signature | Description |
|---|---|
| [`ScriptProperty()`](#scriptproperty) | The constructor is called by the framework. |
| [`ScriptProperty(String)`](#scriptproperty-string) | The constructor is called by the framework. |

### ScriptProperty()

```java
public ScriptProperty()
```

The constructor is called by the framework.

### ScriptProperty(String)

```java
public ScriptProperty(String value)
```

The constructor is called by the framework.

