Helper Classes

Some Atlas helper classes and features mimic the behavior of equivalent .NET Framework classes or features.

Sys.StringBuilder

Method

Description

Web.StringBuilder(initialText)

Constructor with initial text for the string

append(text)

Appends a text to the string

appendLine(text)

Appends a text and a newline (\r\n) to the string

clear()

Empties the string

isEmpty()

Whether the string is empty or not

toString(delimiter)

Joins all elements to a string

Enumerations

Method

Description

getValues()

Returns all values in the enumeration

valueFromString(s)

Returns the enumeration value with the given name

valueToString(value)

Returns the given enumeration value as a string

Type.createEnum(name, value1, index1, ...)

Creates an enumeration with the parameters provided to the Method

Get Programming Atlas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.