FileMetadata#
- class ansys.tools.variableinterop.file_metadata.FileMetadata#
Bases:
ansys.tools.variableinterop.common_variable_metadata.CommonVariableMetadataProvides metadata for the
Filevariable type.
Overview#
Creates a new metadata object from the data from a call to to_dict(). |
Variable type of the object. |
Determine if the object is equal to the metadata. |
Import detail#
from ansys.tools.variableinterop.file_metadata import FileMetadata
Property detail#
- property FileMetadata.variable_type: ansys.tools.variableinterop.variable_type.VariableType#
Variable type of the object.
- Returns:
VariableTypeVariable type of the object.
Method detail#
- FileMetadata.__eq__(other)#
Determine if the object is equal to the metadata.
- FileMetadata.accept(visitor: ansys.tools.variableinterop.ivariablemetadata_visitor.IVariableMetadataVisitor[T]) T#
Invoke the visitor pattern of this object using the passed-in visitor implementation.
- Parameters:
- visitor
IVariableMetadataVisitor[T] Visitor object to call.
- visitor
- Returns:
TResults of the visitor invocation.
- FileMetadata.equals(other: Any) bool#
Determine if the object is equal to the metadata.
- Parameters:
- other
Any Other object to compare this object to.
- other
- Returns:
- bool
Trueif the metadata objects are equal,Falseotherwise.
- FileMetadata.to_dict() dict#
Creates a dictionary representation of this object suitable for JSON serialization.
- Returns:
dictThe generated dictionary
- classmethod FileMetadata.from_dict(data) FileMetadata#
Creates a new metadata object from the data from a call to to_dict().
- Parameters:
- data
The serialized dictionary data.
- Returns:
CommonVariableMetadataThe new metadata object.