goog.ds.PrimitiveFastDataNode
Classgoog.ds.PrimitiveFastDataNode
> goog.ds.AbstractFastDataNode
> goog.ds.DataNodeList
> goog.ds.DataNode
goog.ds.PrimitiveFastDataNode(value, dataName, opt_parent)
Creates a new data node wrapping a primitive value.
value
{number
|boolean
|string
}
dataName
{string
}
opt_parent
{goog.ds.DataNode
=}
.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
}
.get()
Returns the value of this data node.
boolean
|number
|string
)}
.getByIndex(index)
Inherited from goog.ds.DataNodeList
.
Get a node by index Returns null if the index is out of range
index
{number
}
goog.ds.DataNode
}
.getChildNode(name)
Get a child node by name. Always returns null.
name
{string
}
goog.ds.DataNode
}
.getChildNodeValue(name)
Returns the value of a child node. Always returns null.
name
{string
}
Object
}
.getChildNodes()
Returns child nodes of this data node. Always returns an unmodifiable, empty list.
goog.ds.DataNodeList
}
.getCount()
Inherited from goog.ds.DataNodeList
.
Gets the size of the node list
number
}
.getDataName()
Inherited from goog.ds.AbstractFastDataNode
.
Return the name of this data node.
string
}
.getDataPath()
Inherited from goog.ds.AbstractFastDataNode
.
Get the path leading to this data node.
string
}
.getJsObject()
Returns a javascript object representation of this data node. You should not modify the object returned by this function.
.getLoadState()
Inherited from goog.ds.DataNode
.
Gets the state of the backing data for this node
goog.ds.LoadState
}
.isList()
Returns whether this data node is a list. Always returns false for instances of PrimitiveFastDataNode.
boolean
}
.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
}
boolean
}
.set(value)
Sets this data node to a new value.
value
{*}
.setChildNode(name, value)
Not supported by primitive data nodes.
name
{string
}
value
{Object
}
.setDataName(value)
Inherited from goog.ds.AbstractFastDataNode
.
Set the name of this data node.
value
{string
}
.setNode(name, node)
Inherited from goog.ds.DataNodeList
.
Sets a node in the list of a given name
name
{string
}
node
{goog.ds.DataNode
}