aas_core3_2.stringification

De-serialize enumerations from string representations.

aas_core3_2.stringification.modelling_kind_from_str(text: str) → Optional[ModellingKind][source]

Parse text as string representation of aas_core3_2.ModellingKind.

If text is not a valid string representation of a literal of aas_core3_2.ModellingKind, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.ModellingKind or None, if text invalid.

aas_core3_2.stringification.qualifier_kind_from_str(text: str) → Optional[QualifierKind][source]

Parse text as string representation of aas_core3_2.QualifierKind.

If text is not a valid string representation of a literal of aas_core3_2.QualifierKind, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.QualifierKind or None, if text invalid.

aas_core3_2.stringification.asset_kind_from_str(text: str) → Optional[AssetKind][source]

Parse text as string representation of aas_core3_2.AssetKind.

If text is not a valid string representation of a literal of aas_core3_2.AssetKind, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.AssetKind or None, if text invalid.

aas_core3_2.stringification.aas_submodel_elements_from_str(text: str) → Optional[AASSubmodelElements][source]

Parse text as string representation of aas_core3_2.AASSubmodelElements.

If text is not a valid string representation of a literal of aas_core3_2.AASSubmodelElements, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.AASSubmodelElements or None, if text invalid.

aas_core3_2.stringification.entity_type_from_str(text: str) → Optional[EntityType][source]

Parse text as string representation of aas_core3_2.EntityType.

If text is not a valid string representation of a literal of aas_core3_2.EntityType, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.EntityType or None, if text invalid.

aas_core3_2.stringification.direction_from_str(text: str) → Optional[Direction][source]

Parse text as string representation of aas_core3_2.Direction.

If text is not a valid string representation of a literal of aas_core3_2.Direction, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.Direction or None, if text invalid.

aas_core3_2.stringification.state_of_event_from_str(text: str) → Optional[StateOfEvent][source]

Parse text as string representation of aas_core3_2.StateOfEvent.

If text is not a valid string representation of a literal of aas_core3_2.StateOfEvent, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.StateOfEvent or None, if text invalid.

aas_core3_2.stringification.reference_types_from_str(text: str) → Optional[ReferenceTypes][source]

Parse text as string representation of aas_core3_2.ReferenceTypes.

If text is not a valid string representation of a literal of aas_core3_2.ReferenceTypes, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.ReferenceTypes or None, if text invalid.

aas_core3_2.stringification.key_types_from_str(text: str) → Optional[KeyTypes][source]

Parse text as string representation of aas_core3_2.KeyTypes.

If text is not a valid string representation of a literal of aas_core3_2.KeyTypes, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.KeyTypes or None, if text invalid.

aas_core3_2.stringification.data_type_def_xsd_from_str(text: str) → Optional[DataTypeDefXSD][source]

Parse text as string representation of aas_core3_2.DataTypeDefXSD.

If text is not a valid string representation of a literal of aas_core3_2.DataTypeDefXSD, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.DataTypeDefXSD or None, if text invalid.

aas_core3_2.stringification.data_type_iec_61360_from_str(text: str) → Optional[DataTypeIEC61360][source]

Parse text as string representation of aas_core3_2.DataTypeIEC61360.

If text is not a valid string representation of a literal of aas_core3_2.DataTypeIEC61360, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.DataTypeIEC61360 or None, if text invalid.

aas_core3_2.stringification.serialization_format_from_str(text: str) → Optional[SerializationFormat][source]

Parse text as string representation of aas_core3_2.SerializationFormat.

If text is not a valid string representation of a literal of aas_core3_2.SerializationFormat, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.SerializationFormat or None, if text invalid.

aas_core3_2.stringification.security_type_enum_from_str(text: str) → Optional[SecurityTypeEnum][source]

Parse text as string representation of aas_core3_2.SecurityTypeEnum.

If text is not a valid string representation of a literal of aas_core3_2.SecurityTypeEnum, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.SecurityTypeEnum or None, if text invalid.

aas_core3_2.stringification.service_specification_profile_enum_from_str(text: str) → Optional[ServiceSpecificationProfileEnum][source]

Parse text as string representation of aas_core3_2.ServiceSpecificationProfileEnum.

If text is not a valid string representation of a literal of aas_core3_2.ServiceSpecificationProfileEnum, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.ServiceSpecificationProfileEnum or None, if text invalid.

aas_core3_2.stringification.status_code_from_str(text: str) → Optional[StatusCode][source]

Parse text as string representation of aas_core3_2.StatusCode.

If text is not a valid string representation of a literal of aas_core3_2.StatusCode, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.StatusCode or None, if text invalid.

aas_core3_2.stringification.message_type_enum_from_str(text: str) → Optional[MessageTypeEnum][source]

Parse text as string representation of aas_core3_2.MessageTypeEnum.

If text is not a valid string representation of a literal of aas_core3_2.MessageTypeEnum, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.MessageTypeEnum or None, if text invalid.

aas_core3_2.stringification.execution_state_from_str(text: str) → Optional[ExecutionState][source]

Parse text as string representation of aas_core3_2.ExecutionState.

If text is not a valid string representation of a literal of aas_core3_2.ExecutionState, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.ExecutionState or None, if text invalid.

aas_core3_2.stringification.level_from_str(text: str) → Optional[Level][source]

Parse text as string representation of aas_core3_2.Level.

If text is not a valid string representation of a literal of aas_core3_2.Level, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.Level or None, if text invalid.

aas_core3_2.stringification.content_from_str(text: str) → Optional[Content][source]

Parse text as string representation of aas_core3_2.Content.

If text is not a valid string representation of a literal of aas_core3_2.Content, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.Content or None, if text invalid.

aas_core3_2.stringification.extent_from_str(text: str) → Optional[Extent][source]

Parse text as string representation of aas_core3_2.Extent.

If text is not a valid string representation of a literal of aas_core3_2.Extent, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.Extent or None, if text invalid.

aas_core3_2.stringification.global_attribute_kind_from_str(text: str) → Optional[GlobalAttributeKind][source]

Parse text as string representation of aas_core3_2.GlobalAttributeKind.

If text is not a valid string representation of a literal of aas_core3_2.GlobalAttributeKind, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.GlobalAttributeKind or None, if text invalid.

aas_core3_2.stringification.date_time_global_attribute_kind_from_str(text: str) → Optional[DateTimeGlobalAttributeKind][source]

Parse text as string representation of aas_core3_2.DateTimeGlobalAttributeKind.

If text is not a valid string representation of a literal of aas_core3_2.DateTimeGlobalAttributeKind, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.DateTimeGlobalAttributeKind or None, if text invalid.

aas_core3_2.stringification.query_select_from_str(text: str) → Optional[QuerySelect][source]

Parse text as string representation of aas_core3_2.QuerySelect.

If text is not a valid string representation of a literal of aas_core3_2.QuerySelect, return None.

Parameters

text – to be parsed

Returns

the corresponding literal of aas_core3_2.QuerySelect or None, if text invalid.