StringMetadata#
- class ansys.tools.variableinterop.scalar_metadata.StringMetadata#
Bases:
ansys.tools.variableinterop.common_variable_metadata.CommonVariableMetadataProvides common metadata for
STRINGandSTRING_ARRAYvariable types.
Overview#
Creates a new metadata object from the data from a call to to_dict(). |
Variable type of the object. |
|
List of enumerated values. |
|
List of enumerated aliases. |
Determine if the object is equal to the metadata. |
Import detail#
from ansys.tools.variableinterop.scalar_metadata import StringMetadata
Property detail#
- property StringMetadata.variable_type: ansys.tools.variableinterop.variable_type.VariableType#
Variable type of the object.
- Returns:
VariableTypeVariable type of the object.
- property StringMetadata.enumerated_values: List[ansys.tools.variableinterop.scalar_values.StringValue]#
List of enumerated values.
This list may be empty to imply that there are no enumerated values.
- Returns:
List[StringValue]List of enumerated values.
Method detail#
- StringMetadata.__eq__(other)#
Determine if the object is equal to the metadata.
- StringMetadata.accept(visitor: ansys.tools.variableinterop.ivariablemetadata_visitor.IVariableMetadataVisitor[ansys.tools.variableinterop.ivariablemetadata_visitor.T]) ansys.tools.variableinterop.ivariablemetadata_visitor.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.
- StringMetadata.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.
- StringMetadata.to_dict() dict#
Creates a dictionary representation of this object suitable for JSON serialization.
- Returns:
dictThe generated dictionary
- classmethod StringMetadata.from_dict(data) StringMetadata#
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.