Skip to main content
Skip table of contents

SequenceBuilderModel

Builder pattern for the construction of sequence-models.

implements: hash
bundle: online channel standard (oc)
since 4.6.0
Builder pattern for the construction of sequence-models.

The SequenceBuilder represents a mutable list of TemplateModel objects, on which basis immutable FreeMarker sequences can be generated. SequeceBuilder instances can be created using CenshareNamespace.

Defined hash keys

size ↦ Integer
since 4.6.0
Returns number of entries in hash-model

toSequence ↦ TemplateSequenceModel
since 4.6.0
Returns a generated sequence-model containing the values contained in the SequenceBuilder at the time of the invocation.

Methods

add(TemplateModel:value)SequenceBuilderModel
since 4.6.0
Append the element 'value' to the builder.

addAll(Sequence<TemplateModel>:values)SequenceBuilderModel
since 4.6.0
Appends the elements of sequence 'values' to the builder in original order.

get(Number:index)TemplateModel
since 4.6.0
Returns the element at position 'index' within this builder.

set(Number:index, TemplateModel:value)SequenceBuilderModel
since 4.6.0
Overwrites the list entry at the position 'index' with 'value'.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.