ConfigDomain

Description

sealed class Tinman.Core.Config.ConfigDomain

Derived from

VersionedBase abstract
IValidatable

A config domain contains zero or more config scripts and allows them to reference each others members by using qualified names.

A qualified name for a member is constructed from the script name (see ConfigScript.Name) and the member name (see ConfigItem.Name).

Public / Constructors

Config​Domain


public constructor ConfigDomain → ()

Creates a new instance of ConfigDomain.

Public / Methods

Add


public method Add → (1)

script in : ConfigScript

[not-null]
The script to add.

Adds a script to this domain.

The members of the given config script in may be referenced by those config scripts that have been attached to this config domain at creation time (see ConfigScript.From2).

Get


public method Get → (1)

name in : string

[not-null]
The config script name (see ConfigScript.Name).

returns → ConfigScript

The config script.

Returns a config script in this domain.

ConfigException

If there is no config script of the given name in.

Get​Null


public method GetNull → (1)

name in : string

[not-null]
The config script name (see ConfigScript.Name).

returns → ConfigScript

The config script or null if not found.

Returns a config script in this domain.

Remove


public method Remove → (1)

script in : ConfigScript

[not-null]
The script to remove.

Removes a config script from this domain.

Public / Attributes

Scripts


public attribute Scripts → (get)

value : IVectorConst<ConfigScript>

[not-null]
The config script list.

The config scripts in this domain.