The goog.ds.AbstractFastDataNode Class

goog.ds.AbstractFastDataNode
> goog.ds.DataNodeList
> goog.ds.DataNode

goog.ds.AbstractFastDataNode(dataName, opt_parent)

Creates a new abstract data node.

dataName {string}
Name of the datanode.
opt_parent {goog.ds.DataNode=}
Parent of this data node.

.add(node)

Inherited from goog.ds.DataNodeList .

Add a node to the node list. If the node has a dataName, uses this for the key in the map.

node {goog.ds.DataNode}
The node to add.

.get(key)

Inherited from goog.ds.DataNodeList .

Get a node by string key. Returns null if node doesn't exist.

key {string}
String lookup key.
returns {*}
The node, or null if doesn't exist.

.getByIndex(index)

Inherited from goog.ds.DataNodeList .

Get a node by index Returns null if the index is out of range

index {number}
The index of the node.
returns {goog.ds.DataNode}
The node, or null if doesn't exist.

.getChildNode(name, opt_canCreate)

Inherited from goog.ds.DataNode .

Gets a named child node of the current node

name {string}
The node name.
opt_canCreate {boolean=}
Whether to create a child node if it does not exist.
returns {goog.ds.DataNode}
The child node, or null if no node of this name exists.

.getChildNodeValue(name)

Inherited from goog.ds.DataNode .

Gets the value of a child node

name {string}
The node name.
returns {*}
The value of the node, or null if no value or the child node doesn't exist.

.getChildNodes(opt_selector)

Inherited from goog.ds.DataNode .

Gets all of the child nodes of the current node. Should return an empty DataNode list if no child nodes.

opt_selector {string=}
String selector to choose child nodes.
returns {goog.ds.DataNodeList}
The child nodes.

.getCount()

Inherited from goog.ds.DataNodeList .

Gets the size of the node list

returns {number}
The size of the list.

.getDataName()

Return the name of this data node.

returns {string}
Name of this data noden.

.getDataPath()

Get the path leading to this data node.

returns {string}
Data path.

.getLoadState()

Inherited from goog.ds.DataNode .

Gets the state of the backing data for this node

returns {goog.ds.LoadState}
The state.

.isList()

Inherited from goog.ds.DataNode .

Whether the value of this node is a homogeneous list of data

returns {boolean}
True if a list.

.load()

Inherited from goog.ds.DataNode .

Load or reload the backing data for this node

.removeNode(name)

Inherited from goog.ds.DataNodeList .

Removes a node in the list of a given name

name {string}
Name of the node.
returns {boolean}
True if node existed and was deleted.

.set(value)

Inherited from goog.ds.DataNode .

Set the value of the node

value {*}
The new value of the node.

.setChildNode(name, value)

Inherited from goog.ds.DataNode .

Sets a named child node of the current node.

name {string}
The node name.
value {Object}
The value to set, can be DataNode, object, property, or null. If value is null, removes the child node.
returns {Object}
The child node, if the node was set.

.setDataName(value)

Set the name of this data node.

value {string}
Name.

.setNode(name, node)

Inherited from goog.ds.DataNodeList .

Sets a node in the list of a given name

name {string}
Name of the node.
node {goog.ds.DataNode}
The node.