> ## 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.

# StringVariable

public class [StringVariable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable.md) : [Variable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable.md)

A variable type class for ModelCenter

#### Author

Woyak, 9/2001

## Functions

| Name | Summary |
| - | - |
| [dependentLinks](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/dependent-links) | public [dependentLinks](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/dependent-links)(): [VariableLinks](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable-links.md) Returns a list of links that immediately depend on the value of this variable. |
| [disableGC](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/disable-g-c) | public [disableGC](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/disable-g-c)(gc: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) If true, prevents releaseObjects from doing anything. |
| [fromString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/from-string) | public [fromString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/from-string)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) Sets the value for the variable from a string. |
| [getDescription](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-description) | public [getDescription](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-description)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the description for the variable |
| [getDirectDependents](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-direct-dependents) | public [getDirectDependents](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-direct-dependents)(): [Variables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variables.md) public [getDirectDependents](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-direct-dependents)(followSuspended: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [Variables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variables.md) Gets all the immediately linked outputs of this variable. |
| [getDirectPrecedents](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-direct-precedents) | public [getDirectPrecedents](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-direct-precedents)(): [Variables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variables.md) public [getDirectPrecedents](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-direct-precedents)(followSuspended: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [Variables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variables.md) Gets all the immediately linked inputs of this variable. |
| [getEnumAliases](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-enum-aliases) | public [getEnumAliases](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-enum-aliases)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the enumerated aliases for the variable |
| [getEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-enum-values) | public [getEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-enum-values)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the enumerated values for the variable |
| [getFullName](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-full-name) | public [getFullName](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-full-name)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Gets the full name of the variable, e.g. |
| [getHasChanged](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-has-changed) | public [getHasChanged](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-has-changed)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) Boolean which indicates if the variable has changed since the last time the boolean was reset. |
| [getHide](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-hide) | public [getHide](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-hide)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) Gets whether the variable is hidden or not |
| [getMetadata](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-metadata) | public [getMetadata](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-metadata)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Variant](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variant.md) Get a metadata value. |
| [getName](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-name) | public [getName](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-name)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Gets the name of the variable, e.g. |
| [getOwningComponent](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-owning-component) | public [getOwningComponent](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-owning-component)(): [Component](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-component.md) Get the component which owns this variable. |
| [getType](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-type) | public [getType](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/get-type)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Gets the type of the variable. |
| [getValue](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-value) | public [getValue](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-value)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the value of the variable |
| [getValueAbsolute](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-value-absolute) | public [getValueAbsolute](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/get-value-absolute)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the value of the variable without validating it |
| [invalidate](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/invalidate) | public [invalidate](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/invalidate)() Invalidates the variable |
| [isInput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/is-input) | public [~~isInput~~](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/is-input)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) Indicates whether the variable is an input or output |
| [isInputToComponent](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/is-input-to-component) | public [isInputToComponent](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/is-input-to-component)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) Indicates whether a variable is an input to a component |
| [isInputToModel](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/is-input-to-model) | public [isInputToModel](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/is-input-to-model)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) Indicates whether a variable is an input to the Model |
| [isValid](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/is-valid) | public [isValid](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/is-valid)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) Indicates whether the variable is currently valid or not |
| [precedentLinks](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/precedent-links) | public [precedentLinks](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/precedent-links)(): [VariableLinks](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable-links.md) Returns a list of links that are immediate precedents to the value of this variable. |
| [release](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release) | public [release](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release)() Releases the COM reference to ModelCenter for this object. |
| [releaseObjects](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release-objects) | public [releaseObjects](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release-objects)() This function attempts to release any COM resources left behind from objects which have been finalized but release() was never called on them. |
| [setDescription](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/set-description) | public [setDescription](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/set-description)(description: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the description for the variable |
| [setEnumAliases](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/set-enum-aliases) | public [setEnumAliases](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/set-enum-aliases)(enumAliases: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the enumerated aliases for the variable. |
| [setEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/set-enum-values) | public [setEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/set-enum-values)(enumValues: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the enumerated values for the variable |
| [setHasChanged](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/set-has-changed) | public [setHasChanged](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/set-has-changed)(flag: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) Boolean which indicates if the variable has changed since the last time the boolean was reset. |
| [setHide](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/set-hide) | public [setHide](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/set-hide)(flag: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) Set whether the variable is hidden or not |
| [setMetadata](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/set-metadata) | public [setMetadata](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/set-metadata)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), type: [Variable.MetadataType](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/-metadata-type), value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html), access: [Variable.MetadataAccess](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/-metadata-access), archive: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) Set a metadata value on a variable. |
| [setReferenceDebugMode](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/set-reference-debug-mode) | public [setReferenceDebugMode](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/set-reference-debug-mode)(on: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) When set to true, the system will keep a list of active COM objects that are allocated but not yet released since this method was invoked. |
| [setValue](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/set-value) | public [setValue](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-string-variable/set-value)(value: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the value of the variable |
| [toString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/to-string) | public [toString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/to-string)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Converts the variable value to a string representation. |
| [toStringAbsolute](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/to-string-absolute) | public [toStringAbsolute](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/to-string-absolute)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Converts the variable value to a string representation. |
| [validate](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/validate) | public [validate](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable/validate)() Causes the scheduler to get a valid value for this variable. |
