goog.ds.DataNode
Classgoog.ds.DataNode()
Interface for node in rich data tree. Names that are reserved for system use and shouldn't be used for data node names: eval, toSource, toString, unwatch, valueOf, watch. Behavior is undefined if these names are used.
.get(var_args)
Get the value of the node
var_args
{...?}
.getChildNode(name, opt_canCreate)
Gets a named child node of the current node
name
{string
}
opt_canCreate
{boolean
=}
goog.ds.DataNode
}
.getChildNodeValue(name)
Gets the value of a child node
name
{string
}
.getChildNodes(opt_selector)
Gets all of the child nodes of the current node. Should return an empty DataNode list if no child nodes.
opt_selector
{string
=}
goog.ds.DataNodeList
}
.getDataName()
Get the name of the node relative to the parent node
string
}
.getDataPath()
Gets the a qualified data path to this node
string
}
.getLoadState()
Gets the state of the backing data for this node
goog.ds.LoadState
}
.isList()
Whether the value of this node is a homogeneous list of data
boolean
}
.load()
Load or reload the backing data for this node
.set(value)
Set the value of the node
value
{*}
.setChildNode(name, value)
Sets a named child node of the current node.
name
{string
}
value
{Object
}
Object
}
.setDataName(name)
Set the name of the node relative to the parent node
name
{string
}