FileArrayValue#
- class FileArrayValue#
Bases: ansys.tools.variableinterop.variable_value.CommonArrayValue[ansys.tools.variableinterop.file_value.FileValue]
Stores a value for the FileArrayValue variable type.
Overview#
Invoke the visitor pattern of this object using the passed-in visitor |
|
Convert this value to an API string. |
|
Convert the value to a formatted string. |
Variable type of the object. |
Initialize a new |
Return self==value. |
Import detail#
from ansys.tools.variableinterop.file_array_value import FileArrayValue
Property detail#
- property FileArrayValue.variable_type: VariableType#
Variable type of the object.
- Returns:
VariableTypeVariable type of the object.
Method detail#
- FileArrayValue.__eq__(other)#
Return self==value.
- FileArrayValue.accept(visitor: ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor[T]) T#
Invoke the visitor pattern of this object using the passed-in visitor implementation.
- Parameters:
- visitor
IVariableValueVisitor Visitor object to call.
- visitor
- Returns:
TResults of the visitor invocation.
- FileArrayValue.to_api_string(context: ansys.tools.variableinterop.isave_context.ISaveContext | None = None) str#
Convert this value to an API string.
- Parameters:
- context
ISaveContext Context used for saving.
- context
- Returns:
strString appropriate for use in files and APIs.
- static FileArrayValue.from_api_object(value: Any, context: ansys.tools.variableinterop.isave_context.ILoadContext, scope: ansys.tools.variableinterop.file_scope.FileScope) FileArrayValue#
Initialize a new
FileArrayValuetype from a list of API strings.- Parameters:
- value
Any Value to use.
- context
ILoadContext Load context to initialize the value with.
- scope
FileScope Scope to initialize the value in.
- value
- Returns:
FileArrayValueNew
FileArrayValuetype initialized from the value.