Language
Edit

DataNodeObject Class

Definition

A generic DOM style data node that implements the IDataNode interface.

Supports primitives, arrays and dictionaries.

It's used by DataSourceObjects to implement a structured data set.

public class DataNodeObject : MixedReality.Toolkit.Data.IDataNode
type DataNodeObject = class
    interface IDataNode
Public Class DataNodeObject
Implements IDataNode
Inheritance
DataNodeObject
Implements

Constructors

Name Description
DataNodeObject()
DataNodeObject(DataNodeType, Object)

Fields

Name Description
_type
_value

Methods

Name Description
AddToArray(IDataNode)

If this is an array node, add a new node to the end, otherwise no-op.

AddToMap(String, IDataNode)

If this is a map node, add a new key and the associated node, otherwise no-op.

GetArray()
GetCollectionCount()

If this node is an array or a map, return the number of entries.

GetMap()
GetMapKeys()

If this node is a map, return an enumeration of keys.

GetNodeByIndex(Int32)

Return the nth child node of an array node.

GetNodeByKey(String)

Return the child node of a map node by its key.

GetNodeType()

Get the type for this node.

GetValue()

Get the value associated with this node.

IsArray()

Is this node an array of other nodes?

IsMap()

Is this node a map (dictionary) to other nodes?

IsUnassigned()

Is this node created but has not yet been assigned a data type?

SetNodeType(DataNodeType, Object)
SetValue(Object)

Set the value associated with this node.

Applies to