A config domain contains zero or more config scripts and allows them to reference each others members by using qualified names.
sealed class
|
ConfigDomain
|
implements
|
IValidatable
|
||
extends
|
VersionedBase
|
A qualified name for a member is constructed from the script name (see Name) and the member name (see Name).
The config scripts in this domain.
public
property
|
Scripts
{
get
}
|
||
type
|
IVectorConst<ConfigScript>
|
||
value
|
|
The config script list. |
Returns the current version of object.
public
property
|
Version
{
get
}
|
||
type
|
int32
|
||
value
|
The current version number. | ||
inherited
|
VersionedBase.Version
|
Remarks:
For each modification, the version is incremented by at least one.
Creates a new instance of ConfigDomain.
public
constructor
|
ConfigDomain
()
|
Adds a script to this domain.
public
method
|
Add
(ConfigScript script)
|
||
params
|
script
|
[not-null]
|
The script to add. |
Returns a config script in this domain.
public
method
|
Get
(string name)
|
||
type
|
ConfigScript
|
||
params
|
name
|
[not-null]
|
The config script name (see Name). |
returns
|
|
The config script. |
Exceptions:
Returns a config script in this domain.
public
method
|
GetNull
(string name)
|
||
type
|
ConfigScript
|
||
params
|
name
|
[not-null]
|
The config script name (see Name). |
returns
|
The
config
script
or
null
if
not
found. |
Removes a config script from this domain.
public
method
|
Remove
(ConfigScript script)
|
||
params
|
script
|
[not-null]
|
The script to remove. |
Validates the state of this object.
public
method
|
Validate
(Validator validator)
|
||
params
|
validator
|
[not-null]
|
The validator object. |
implements
|
IValidatable.Validate
|