aas_core3_1.stringification

De-serialize enumerations from string representations.

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

Parse text as string representation of aas_core3_1.ModellingKind.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.QualifierKind.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.AssetKind.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.AASSubmodelElements.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.EntityType.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.Direction.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.StateOfEvent.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.ReferenceTypes.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.KeyTypes.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.DataTypeDefXSD.

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

Parameters

text – to be parsed

Returns

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

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

Parse text as string representation of aas_core3_1.DataTypeIEC61360.

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

Parameters

text – to be parsed

Returns

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