Used by ValueHostResolver's vm property to make it easier for the user to get strongly typed ValueHosts, compared to ValueHostResolver.getValueHost().

It simplies this syntax, shown for getting a value from a InputValueHost:

let ivh = vm.getValueHost("valuehostname") as IInputValueHost;
if (ivh)
x = ivh.getInputValue();

The improved syntax:

x = vm.vh.input("valuehostname").getInputValue();

A key difference is that getValueHost may return null. The ValueHostAccessor treats unknown valuehosts and those that don't typecast correctly as exceptions.

Implements

Constructors

Accessors

Methods

Generated using TypeDoc v0.25.12