> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: IRuntimeVariable

**Package:** `com.phoenix_int.pacz.api.v2`

**All Superinterfaces**

* [IPHXType](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/types/IPHXType.md)
* [IPHXType2](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/types/IPHXType2.md)
* [IPHXUnits](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/types/IPHXUnits.md)
* com.phoenix\_int.pacz.api.v2.IRuntimeVariableMetadata

***

**Declaration:**

```java theme={null}
public interface IRuntimeVariable
extends IPHXType2, IPHXUnits, com.phoenix_int.pacz.api.v2.IRuntimeVariableMetadata
```

Component variable interface

## Nested Class Summary

### Nested classes/interfaces inherited from interface com.phoenix\_int.aserver.types.[IPHXType2](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/types/IPHXType2.md)

`IPHXType2.IVisitor<T>`

## Method Summary

| Modifier and Type | Method and Description |
| - | - |
| `IRuntimeVariable` | `createCopy()` Get a clone of this variable, including its metadata and value. |
| `java.lang.String` | `getDescription()` Get variable description |
| `java.util.Map<java.lang.String,java.lang.String>` | `getMetaData()` Get additional variable meta data |
| `java.lang.String` | `getType()` Get variable data type |
| `java.lang.String` | `getVariableName()` Get variable name |
| `boolean` | `isArray()` Whether or not variable is an array type |
| `boolean` | `isEnum()` Whether or not variable is an enumerated type |
| `boolean` | `isNumeric()` Whether or not variable is a numeric type |
| `void` | `setDescription(java.lang.String description)` Set variable description |
| `void` | `setMetaData(java.lang.String key, java.lang.String value)` Set meta data property; will create a new entry if it does not exist |
| `void` | `setVariableName(java.lang.String name)` Set variable name |
| `PHXSimpleType` | `toPHXSimpleType()` Get the PHXSimpleType version of variable |

#### Methods inherited from interface com.phoenix\_int.aserver.types.[IPHXType2](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/types/IPHXType2.md)

`Accept`, `fromString2`, `toString2`

#### Methods inherited from interface com.phoenix\_int.aserver.types.[IPHXType](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/types/IPHXType.md)

`fromString`, `toString`

#### Methods inherited from interface com.phoenix\_int.aserver.types.[IPHXUnits](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/types/IPHXUnits.md)

`getUnits`, `setUnits`

#### Methods inherited from interface com.phoenix\_int.pacz.api.v2.IRuntimeVariableMetadata

`getOptionalEnumAliases`, `getOptionalEnumValues`, `getOptionalFormat`, `getOptionalLowerBound`, `getOptionalUpperBound`

## Method Detail

### getVariableName

```java theme={null}
java.lang.String getVariableName()
```

Get variable name

**Returns:**

* variable name

### setVariableName

```java theme={null}
void setVariableName(java.lang.String name)
```

Set variable name

**Parameters:**

* `name` - variable name to use

### getDescription

```java theme={null}
java.lang.String getDescription()
```

Get variable description

**Returns:**

* description of variable

### setDescription

```java theme={null}
void setDescription(java.lang.String description)
```

Set variable description

**Parameters:**

* `description` - description of variable to use

### getType

```java theme={null}
java.lang.String getType()
```

Get variable data type

**Returns:**

* variable data type

**See Also:**

* [PHXTypeFactory.getVarType(java.lang.String)](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/types/PHXTypeFactory.md)

### getMetaData

```java theme={null}
java.util.Map<java.lang.String,java.lang.String> getMetaData()
```

Get additional variable meta data

**Returns:**

* key-value pair of variable meta data

### setMetaData

```java theme={null}
void setMetaData(java.lang.String key, 
                 java.lang.String value)
          throws java.lang.IllegalArgumentException
```

Set meta data property; will create a new entry if it does not exist

**Parameters:**

* `key` - meta data property for which to set value
* `value` - value to set

**Throws:**

* `java.lang.IllegalArgumentException` - if key is null or empty

### isNumeric

```java theme={null}
boolean isNumeric()
```

Whether or not variable is a numeric type

**Returns:**

* `true` if numeric type, `false` otherwise

### isArray

```java theme={null}
boolean isArray()
```

Whether or not variable is an array type

**Returns:**

* `true` if array type, `false` otherwise

### isEnum

```java theme={null}
boolean isEnum()
```

Whether or not variable is an enumerated type

**Returns:**

* `true` if enumerated type, `false` otherwise

### toPHXSimpleType

```java theme={null}
PHXSimpleType toPHXSimpleType()
```

Get the PHXSimpleType version of variable

**Returns:**

* PHXSimpleType version of variable

### createCopy

```java theme={null}
IRuntimeVariable createCopy()
```

Get a clone of this variable, including its metadata and value.

**Returns:**

* a newly constructed clone of the instance.
