stringification

package
v0.0.16-0...-6e15812 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package stringification converts enumerations from and to string representations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AASSubmodelElementsFromString

func AASSubmodelElementsFromString(
	text string,
) (literal aastypes.AASSubmodelElements, ok bool)

Parse `text` as a string representation of aastypes.AASSubmodelElements.

If not ok, the literal result is undefined.

func AASSubmodelElementsToString

func AASSubmodelElementsToString(
	value aastypes.AASSubmodelElements,
) (result string, ok bool)

Translate `value` from aastypes.AASSubmodelElements to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func AssetKindFromString

func AssetKindFromString(
	text string,
) (literal aastypes.AssetKind, ok bool)

Parse `text` as a string representation of aastypes.AssetKind.

If not ok, the literal result is undefined.

func AssetKindToString

func AssetKindToString(
	value aastypes.AssetKind,
) (result string, ok bool)

Translate `value` from aastypes.AssetKind to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func DataTypeDefXSDFromString

func DataTypeDefXSDFromString(
	text string,
) (literal aastypes.DataTypeDefXSD, ok bool)

Parse `text` as a string representation of aastypes.DataTypeDefXSD.

If not ok, the literal result is undefined.

func DataTypeDefXSDToString

func DataTypeDefXSDToString(
	value aastypes.DataTypeDefXSD,
) (result string, ok bool)

Translate `value` from aastypes.DataTypeDefXSD to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func DataTypeIEC61360FromString

func DataTypeIEC61360FromString(
	text string,
) (literal aastypes.DataTypeIEC61360, ok bool)

Parse `text` as a string representation of aastypes.DataTypeIEC61360.

If not ok, the literal result is undefined.

func DataTypeIEC61360ToString

func DataTypeIEC61360ToString(
	value aastypes.DataTypeIEC61360,
) (result string, ok bool)

Translate `value` from aastypes.DataTypeIEC61360 to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func DirectionFromString

func DirectionFromString(
	text string,
) (literal aastypes.Direction, ok bool)

Parse `text` as a string representation of aastypes.Direction.

If not ok, the literal result is undefined.

func DirectionToString

func DirectionToString(
	value aastypes.Direction,
) (result string, ok bool)

Translate `value` from aastypes.Direction to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func EntityTypeFromString

func EntityTypeFromString(
	text string,
) (literal aastypes.EntityType, ok bool)

Parse `text` as a string representation of aastypes.EntityType.

If not ok, the literal result is undefined.

func EntityTypeToString

func EntityTypeToString(
	value aastypes.EntityType,
) (result string, ok bool)

Translate `value` from aastypes.EntityType to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func KeyTypesFromString

func KeyTypesFromString(
	text string,
) (literal aastypes.KeyTypes, ok bool)

Parse `text` as a string representation of aastypes.KeyTypes.

If not ok, the literal result is undefined.

func KeyTypesToString

func KeyTypesToString(
	value aastypes.KeyTypes,
) (result string, ok bool)

Translate `value` from aastypes.KeyTypes to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func ModelTypeFromString

func ModelTypeFromString(
	text string,
) (literal aastypes.ModelType, ok bool)

Parse `text` as a string representation of aastypes.ModelType.

If not ok, the literal result is undefined.

func ModelTypeToString

func ModelTypeToString(
	value aastypes.ModelType,
) (result string, ok bool)

Translate `value` from aastypes.ModelType to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func ModellingKindFromString

func ModellingKindFromString(
	text string,
) (literal aastypes.ModellingKind, ok bool)

Parse `text` as a string representation of aastypes.ModellingKind.

If not ok, the literal result is undefined.

func ModellingKindToString

func ModellingKindToString(
	value aastypes.ModellingKind,
) (result string, ok bool)

Translate `value` from aastypes.ModellingKind to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func MustAASSubmodelElementsToString

func MustAASSubmodelElementsToString(
	value aastypes.AASSubmodelElements,
) string

Translate the `value` from aastypes.AASSubmodelElements to a string.

Panic if the given value is invalid.

func MustAssetKindToString

func MustAssetKindToString(
	value aastypes.AssetKind,
) string

Translate the `value` from aastypes.AssetKind to a string.

Panic if the given value is invalid.

func MustDataTypeDefXSDToString

func MustDataTypeDefXSDToString(
	value aastypes.DataTypeDefXSD,
) string

Translate the `value` from aastypes.DataTypeDefXSD to a string.

Panic if the given value is invalid.

func MustDataTypeIEC61360ToString

func MustDataTypeIEC61360ToString(
	value aastypes.DataTypeIEC61360,
) string

Translate the `value` from aastypes.DataTypeIEC61360 to a string.

Panic if the given value is invalid.

func MustDirectionToString

func MustDirectionToString(
	value aastypes.Direction,
) string

Translate the `value` from aastypes.Direction to a string.

Panic if the given value is invalid.

func MustEntityTypeToString

func MustEntityTypeToString(
	value aastypes.EntityType,
) string

Translate the `value` from aastypes.EntityType to a string.

Panic if the given value is invalid.

func MustKeyTypesToString

func MustKeyTypesToString(
	value aastypes.KeyTypes,
) string

Translate the `value` from aastypes.KeyTypes to a string.

Panic if the given value is invalid.

func MustModelTypeToString

func MustModelTypeToString(
	value aastypes.ModelType,
) string

Translate the `value` from aastypes.ModelType to a string.

Panic if the given value is invalid.

func MustModellingKindToString

func MustModellingKindToString(
	value aastypes.ModellingKind,
) string

Translate the `value` from aastypes.ModellingKind to a string.

Panic if the given value is invalid.

func MustQualifierKindToString

func MustQualifierKindToString(
	value aastypes.QualifierKind,
) string

Translate the `value` from aastypes.QualifierKind to a string.

Panic if the given value is invalid.

func MustReferenceTypesToString

func MustReferenceTypesToString(
	value aastypes.ReferenceTypes,
) string

Translate the `value` from aastypes.ReferenceTypes to a string.

Panic if the given value is invalid.

func MustStateOfEventToString

func MustStateOfEventToString(
	value aastypes.StateOfEvent,
) string

Translate the `value` from aastypes.StateOfEvent to a string.

Panic if the given value is invalid.

func QualifierKindFromString

func QualifierKindFromString(
	text string,
) (literal aastypes.QualifierKind, ok bool)

Parse `text` as a string representation of aastypes.QualifierKind.

If not ok, the literal result is undefined.

func QualifierKindToString

func QualifierKindToString(
	value aastypes.QualifierKind,
) (result string, ok bool)

Translate `value` from aastypes.QualifierKind to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func ReferenceTypesFromString

func ReferenceTypesFromString(
	text string,
) (literal aastypes.ReferenceTypes, ok bool)

Parse `text` as a string representation of aastypes.ReferenceTypes.

If not ok, the literal result is undefined.

func ReferenceTypesToString

func ReferenceTypesToString(
	value aastypes.ReferenceTypes,
) (result string, ok bool)

Translate `value` from aastypes.ReferenceTypes to a string.

If the value is not valid, the OK is false and the string representation is undefined.

func StateOfEventFromString

func StateOfEventFromString(
	text string,
) (literal aastypes.StateOfEvent, ok bool)

Parse `text` as a string representation of aastypes.StateOfEvent.

If not ok, the literal result is undefined.

func StateOfEventToString

func StateOfEventToString(
	value aastypes.StateOfEvent,
) (result string, ok bool)

Translate `value` from aastypes.StateOfEvent to a string.

If the value is not valid, the OK is false and the string representation is undefined.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL