Convert

This service class provides static member functions to convert between values and their representations according to the data type definitions of the XML Schema language. When a conversion (from representation to value) cannot be performed, an exception indicating the XML validity violation is thrown. @Immutable

Members

Static functions

to
T to(string value)

Converts the specified representation into its boolean value.

to
T to(string value)

Converts the specified representation into its integer or floating-point value.

to
T to(string value)

Converts the specified representation into its enumeration value.

to
T to(string value)

Converts the specified representation into its date value.

to
T to(string value)

Converts the specified representation into its date and time value.

to
T to(string value)

Converts the specified representation to an arbitrary type, so long the type has a fromString method.

to
T to(string value)

Converts the specified representation into its duration (strictly speaking, 'dayTimeDuration') value. For decimal fractions, digits representing less than one millisecond are disregarded.

to
T to(string value)

Converts the specified representation into its time value.

to
T to(string value)

Returns the specified string value. This specialization allows to use the template with any relevant type.

toPositive
T toPositive(string value)

Converts the specified representation into its positive integer value.

toString
string toString(bool value)

Converts the specified boolean value into its canonical representation.

toString
string toString(T value)

Converts the specified integer or floating-point value into its canonical representation.

toString
string toString(Date date)

Converts the specified date into its canonical representation.

toString
string toString(SysTime dateTime)

Converts the specified date and time value into its canonical representation.

toString
string toString(Duration duration)

Converts the specified duration value into its canonical representation.

toString
string toString(TimeOfDay timeOfDay)

Converts the specified time of day value into its canonical representation.

toTime
T toTime(string value)

Converts the specified "time" representation (time of day with optional fractional seconds) into the corresponding time of day (without fractional seconds).

toTime
T toTime(string value)

Converts the specified "time" representation (time of day with optional fractional seconds) into the corresponding duration since midnight.

Meta