Constructor for the ModelDB
.
A promise resolved when the model is connected to its backend. For the in-memory ModelDB it is immediately resolved.
Whether the model is collaborative.
Whether the model has been populated with any model values.
The base path for the ModelDB
. This is prepended
to all the paths that are passed in to the member
functions of the object.
Whether the database is disposed.
Compute the fully resolved path for a path argument.
Create an undoable list and insert it in the database.
the list that was created.
The list can only store objects that are simple JSON Objects and primitives.
Create a map and insert it in the database.
the map that was created.
The map can only store objects that are simple JSON Objects and primitives.
Create a string and insert it in the database.
the string that was created.
Create an opaque value and insert it in the database.
the value that was created.
Dispose of the resources held by the database.
Get a value for a path.
an IObservable
.
Get a value at a path, or undefined if it has not been set
That value must already have been created using
createValue`.
Whether the IModelDB
has an object at this path.
a boolean for whether an object is at path
.
Set a value at a path. Not intended to
be called by user code, instead use the
create*
factory methods.
Set a value at a path. That value must already have
been created using createValue
.
Create a view onto a subtree of the model database.
an IModelDB
with a view onto the original
IModelDB
, with basePath
prepended to all paths.
Generated using TypeDoc
A concrete implementation of an
IModelDB
. A namespace for theModelDB
class statics.