Inheritance
Implements

Static Properties

instance SimpleNodeProvider

Global instance. This is by default always the first instance of SimpleNodeProvider.

read / write

Constructors

SimpleNodeProvider([Map<String, dynamic> m, Map<String, NodeFactory> profiles ])

Creates a SimpleNodeProvider. If m and optionally profiles is specified, the provider is initialized with these values.

Properties

defs SimpleHiddenNode

defs node

read / write
nodes → Map<String, LocalNode>

All the nodes in this node provider.

final
permissions IPermissionManager

Permissions

read / write
profileMap → Map<String, NodeFactory>

read-only
root SimpleNode

Root node

read / write
sys SimpleHiddenNode

sys node

read / write
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited
operator [](String path) LocalNode

Gets an existing node, or creates a dummy node for a requester to listen on.

inherited
operator ~() LocalNode

Get the root node.

inherited

Methods

addNode(String path, Map m) SimpleNode

Adds a node at the given path that is initialized with the given data in m.

addProfile(String name, NodeFactory factory) → void

createNode(String path, [ bool init = true ]) SimpleNode

Creates a node at path. If a node already exists at this path, an exception is thrown. If init is false, onCreated() is not called.

createResponder(String dsId, String sessionId) Responder

Creates a responder with the given dsId.

getNode(String path) LocalNode

Gets an existing node.

getOrCreateNode(String path, [ bool addToTree = true, bool init = true ]) LocalNode

Gets a node at the given path if it exists. If it does not exist, create a new node and return it.

hasNode(String path) → bool

Checks if this provider has the node at path.

init([Map<String, dynamic> m, Map<String, NodeFactory> profiles ]) → void

Initialize the node provider.

persist([bool now = false ]) → void

Persist the nodes in this provider. If you are not using a LinkProvider, then call setPersistFunction to set the function that is called to persist.

registerResolver(SimpleNodeFactory factory) → void

removeNode(String path, { bool recurse: true }) → void

Removes the node specified at path.

save() → Map

Save the node provider to a map.

setIconResolver(IconResolver resolver) → void

setNode(String path, SimpleNode node, { bool registerChildren: false }) → void

Sets the given node to the given path.

setPersistFunction(ExecutableFunction doPersist) → void

Sets the function that persists the nodes.

toString({bool showInstances: false }) → String

Returns a string representation of this object.

unregisterResolver(SimpleNodeFactory factory) → void

updateValue(String path, Object value) → void

Updates the value of the node at path to the given value.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited