Abstract base for classes that can browse a ConfigValue by creating an interactive IApplication for it.
abstract class
|
ConfigValueBrowser
|
implements
|
IPleaseIncludeInBinaryThanks
|
Returns all currently registered ConfigValueBrowser objects.
public
static
property
|
All
{
get
}
|
||
type
|
ConfigValueBrowser[]
|
||
value
|
|
The list of registered browser objects. |
Human-readable name of this ConfigValueBrowser instance.
public
abstract
property
|
Name
{
get
}
|
||
type
|
string
|
||
value
|
|
The human-readable name. |
Creates a new instance of IApplication that browses the given config value.
[OwnerReturn]
|
||||
public
abstract
method
|
Browse
(ConfigValue config,
Validator validator = null)
|
|||
type
|
IApplication
|
|||
params
|
config
|
[not-null]
|
The config value. | |
validator
|
Optional validator object to use for validating the configured native object, before wrapping it in an application. | |||
returns
|
The
browser
application
or
null . |
See also:
CanBrowseCan this ConfigValueBrowser object create a browser application for the given config value?
public
abstract
method
|
CanBrowse
(ConfigValue config)
|
||
type
|
bool
|
||
params
|
config
|
[not-null]
|
The config value. |
returns
|
true
if
Browse
can
possibly
create
a
browser
application,
false
if
not
(i.e.
Browse
will
always
return
null ).
|
Can this ConfigValueBrowser object inspect the given config value?
public
abstract
method
|
CanInspect
(ConfigValue config)
|
||
type
|
bool
|
||
params
|
config
|
[not-null]
|
The config value. |
returns
|
true
if
Inspect
can
possibly
inspect
the
value,
false
if
not
(i.e.
Inspect
will
always
return
null ).
|
Returns an inspection object for the given config value.
[OwnerReturn]
|
||||
public
abstract
method
|
Inspect
(ConfigValue config)
|
|||
type
|
object
|
|||
params
|
config
|
[not-null]
|
The config value. | |
returns
|
The
object
that
represents
the
inspection
result,
or
null .
Depending on the type of the returned object, the following behaviour applies:
|
See also:
CanInspectThis is a no-op method that forces the compiler / linker to include this type in the resulting binary.
public
method
|
PleaseIncludeInBinaryThanks
()
|
||
implements
|
IPleaseIncludeInBinaryThanks.PleaseIncludeInBinaryThanks
|
Remarks:
Calling this stub method makes sure that all lazy constructor calls have been made.
To initialize everything, an application needs to call this method on its root module(s) (see TinmanModule), followed by a call to PleaseIncludeInBinaryThanksAll.
Registers this ConfigValueBrowser so that it appears in All.
protected
method
|
Register
()
|