aas_core3.stringification

De-serialize enumerations from string representations.

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

Parse text as string representation of aas_core3.ModellingKind.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.QualifierKind.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.AssetKind.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.AASSubmodelElements.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.EntityType.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.Direction.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.StateOfEvent.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.ReferenceTypes.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.KeyTypes.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.DataTypeDefXSD.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3.DataTypeIEC61360.

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

Parameters

text – to be parsed

Returns

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