Class: DefinitionalStanza

DefinitionalStanza(name, applications, isCompatible)

Definitional stanza that can contain application and / or policies.

Constructor

new DefinitionalStanza(name, applications, isCompatible)

Create a new DefinitionalStanza.
Parameters:
Name Type Description
name string Name of the stanza.
applications Array.<Application> Array of applications.
isCompatible boolean Whether stanza is UI-compatible.
Source:

Methods

getApplications() → {Array.<Application>}

Get the applications defined in this stanza.
Source:
Returns:
Array of applications defined in the stanza.
Type
Array.<Application>

getIsCompatible() → {boolean}

Check if this stanza is compatible with UI editing.
Source:
Returns:
True if stanza can be edited in UI, false otherwise.
Type
boolean

getName() → {string}

Get the name of this definitional stanza.
Source:
Returns:
The name of the stanza ("default" or policy name).
Type
string

toCode(spaces) → {string}

Generate the code representation of this stanza. Generate the QubecTalk code representation of this definitional stanza, including all its applications and appropriate indentation.
Parameters:
Name Type Description
spaces number Number of spaces to use for indentation.
Source:
Returns:
The code representation of the stanza.
Type
string