Base Section Definition
BaseSectionDefinition
Base class for all the sections used in the decision table. A decision table is devided in different sections. Each section has different funktionality.
Kind: global class
- BaseSectionDefinition
- .sectionType
- .name
- .mandatory
- .multiple
- .headerRow
- .dataRows
- .multiInstancesAllowed
- .isHeader()
- .createNewRow() ⇒
string
- .getRowIds() ⇒
array
- .validate() ⇒
array
baseSectionDefinition.sectionType
The type of a section. To be overwrite by a sub class.
Kind: instance property of BaseSectionDefinition
baseSectionDefinition.name
The name of this section.
Kind: instance property of BaseSectionDefinition
baseSectionDefinition.mandatory
Defines if the section must have at least one value.
Kind: instance property of BaseSectionDefinition
baseSectionDefinition.multiple
defines if this section may have more than one row.
Kind: instance property of BaseSectionDefinition
baseSectionDefinition.headerRow
This id is used to identify a row or section in the model. All rows and columns are identified by auch an id.
Kind: instance property of BaseSectionDefinition
baseSectionDefinition.dataRows
Stores the IDs of the data rows. Not the rows itself.
Kind: instance property of BaseSectionDefinition
baseSectionDefinition.multiInstancesAllowed
If set to false only one section of this type is allowed per model.
Kind: instance property of BaseSectionDefinition
baseSectionDefinition.isHeader()
Returns true if the given row id is from a header row.
Kind: instance method of BaseSectionDefinition
string
baseSectionDefinition.createNewRow() ⇒ Creates a new row for this section. Generates a new UUID and add it to the row array.
Kind: instance method of BaseSectionDefinition
Returns: string
- id The new created row id
array
baseSectionDefinition.getRowIds() ⇒ Return an array with all the row IDs of this section.
Kind: instance method of BaseSectionDefinition
Returns: array
- ids An array of row ids
array
baseSectionDefinition.validate() ⇒ Validates this section definition. Checks that the name of the section exists.
Kind: instance method of BaseSectionDefinition
Returns: array
- issues An array of issues found