TemplateList

data class TemplateList(val templates: MutableList<Template> = DEFAULT_TEMPLATES) : State(source)

A collection of different templates.

Constructors

Link copied to clipboard
constructor(templates: MutableList<Template> = DEFAULT_TEMPLATES)

Types

Link copied to clipboard
object Companion

Holds constants.

Properties

Link copied to clipboard
val templates: MutableList<Template>

The collection of templates, each with a unique name.

Functions

Link copied to clipboard
open override fun applyContext(context: Box<Settings>)

Sets the State.context of this State to context.

Link copied to clipboard
open override fun deepCopy(retainUuid: Boolean): TemplateList

Note that the context must be updated manually.

Link copied to clipboard
open override fun doValidate(): String?

Validates the state, and indicates whether and why it is invalid.

Link copied to clipboard
fun getSchemeByUuid(uuid: String): Scheme?

Returns the template or scheme in this list that has uuid as its UUID, or null if there is no such template or scheme.

Link copied to clipboard
fun getTemplateByUuid(uuid: String): Template?

Returns the template in this list that has uuid as its UUID, or null if there is no such template.