ds.BaseDataNode Extends
Base class for data node functionality, has default implementations for many of the functions. implements {goog.ds.DataNode}

Inheritance

Constructor

goog.ds.BaseDataNode()

Instance Methods

Public Protected Private
getChildNode(nameopt_canCreate) goog.ds.DataNode
Gets a named child node of the current node
Arguments:
name : string
The node name.
opt_canCreate : boolean=
Whether you can create the child node if it doesn't exist already.
Returns: goog.ds.DataNode  The child node, or null if no node of this name exists and opt_create is false.
code »
getChildNodeValue(name) Object
Gets the value of a child node
Arguments:
name : string
The node name.
Returns: Object  The value of the node, or null if no value or the child node doesn't exist.
code »
getChildNodes(opt_selector) !goog.ds.DataNodeList
Gets all of the child nodes of the current node. Should return an empty DataNode list if no child nodes.
Arguments:
opt_selector : string=
String selector to choose child nodes.
Returns: !goog.ds.DataNodeList  The child nodes.
code »
getDataName() string
Get the name of the node relative to the parent node
Returns: string  The name of the node.
code »
getDataPath() string
Gets the a qualified data path to this node
Returns: string  The data path.
code »
getLoadState() goog.ds.LoadState
Gets the state of the backing data for this node
Returns: goog.ds.LoadState  The state.
code »
load()
Load or reload the backing data for this node
code »
set(value)
Set the value of the node
Arguments:
value : Object
The new value of the node.
code »

Instance Properties

getParent :
Gets the parent node. Subclasses implement this function
Code »

Package ds

Package Reference