goog.ds.DataNode | |
goog.ds.DataNodeList | goog.ds.DataNode |
goog.ds.AbstractFastDataNode | goog.ds.DataNodeList |
goog.ds.FastDataNode | goog.ds.AbstractFastDataNode |
goog.ds.JsXmlHttpDataSource | goog.ds.FastDataNode |
uri
: string | | goog.Uri
URI for the request.
|
name
: string
Name of the datasource.
|
opt_startText
: string=
Text to expect/strip before JS response.
|
opt_endText
: string=
Text to expect/strip after JS response.
|
opt_usePost
: boolean=
If true, use POST. Defaults to false (GET).
|
![]()
Completed callback. Loads data if successful, otherwise sets
state to FAILED
Arguments:
|
code » | ||
![]()
Gets the state of the backing data for this node
Returns: goog.ds.LoadState
The state.
|
code » | ||
![]()
Load or reload the backing data for this node.
Fires the JsonDataSource
|
code » | ||
![]()
Sets the request data. This can be used if it is required to
send a specific body rather than build the body from the query
parameters. Only used in POST requests.
Arguments:
|
code » | ||
![]()
Called on successful request.
|
code » |
![]()
Adds a child to this data node.
Arguments:
|
code » | |||
Creates a deep copy of this data node.
Returns: goog.ds.FastDataNode
Clone of this data node.
|
code » | |||
![]()
Add all attributes of object to this data node.
Arguments:
|
code » | |||
![]()
Gets the value of this data node (if called without opt_key) or
gets a child node (if called with opt_key).
Arguments:
Returns: *
This data node or a child node.
|
code » | |||
Gets a child node by index. This method has a complexity of O(n) where
n is the number of children. If you need a faster implementation of this
method, you should use goog.ds.FastListNode.
Arguments:
Returns: goog.ds.DataNode
Child node at specified index.
|
code » | |||
Get a child node by name.
Arguments:
Returns: goog.ds.DataNode
Child node.
|
code » | |||
Returns the value of a child node. By using this method you can avoid
the need to create PrimitiveFastData nodes.
|
code » | |||
![]()
No description.
|
code » | |||
Gets the number of child nodes. This method has a complexity of O(n) where
n is the number of children. If you need a faster implementation of this
method, you should use goog.ds.FastListNode.
Returns: number
Number of child nodes.
|
code » | |||
Returns a javascript object representation of this data node. You should
not modify the object returned by this function.
Returns: !Object
Javascript object representation of this data node.
|
code » | |||
Returns whether this data node is a list. Always returns false for
instances of FastDataNode but may return true for subclasses.
Returns: boolean
Whether this data node is array-like.
|
code » | |||
![]()
Removes a child node.
|
code » | |||
![]()
Not supported for normal FastDataNodes.
Arguments:
|
code » | |||
![]()
Sets a child node. Creates the child if it does not exist.
Calling this function makes any child nodes previously obtained for name
invalid. You should not use these child nodes but instead obtain a new
instance by calling getChildNode.
|
code » | |||
![]()
Sets a child node.
|
code » | |||
![]()
Makes sure that a named child is wrapped in a data node structure.
Arguments:
|
code » |
![]()
Add a node to the node list.
If the node has a dataName, uses this for the key in the map.
Arguments:
|
code » | |||
![]()
Get a node by string key.
Returns null if node doesn't exist.
Arguments:
Returns: *
The node, or null if doesn't exist.
|
code » | |||
Get a node by index
Returns null if the index is out of range
Arguments:
Returns: goog.ds.DataNode
The node, or null if doesn't exist.
|
code » | |||
Gets the size of the node list
Returns: number
The size of the list.
|
code » | |||
Removes a node in the list of a given name
|
code » | |||
![]()
Sets a node in the list of a given name
Arguments:
|
code » |
![]()
Get the value of the node
Arguments:
Returns: *
The value of the node, or null if no value.
|
code » | |||
Gets a named child node of the current node
Arguments:
Returns: goog.ds.DataNode
The child node, or null
if no node of this name exists.
|
code » | |||
![]()
Gets the value of a child node
Arguments:
Returns: *
The value of the node, or null if no value or the child node
doesn't exist.
|
code » | |||
Gets all of the child nodes of the current node.
Should return an empty DataNode list if no child nodes.
Arguments:
Returns: !goog.ds.DataNodeList
The child nodes.
|
code » | |||
Get the name of the node relative to the parent node
Returns: string
The name of the node.
|
code » | |||
Gets the a qualified data path to this node
Returns: string
The data path.
|
code » | |||
![]()
Gets the state of the backing data for this node
Returns: goog.ds.LoadState
The state.
|
code » | |||
Whether the value of this node is a homogeneous list of data
Returns: boolean
True if a list.
|
code » | |||
![]()
Set the value of the node
Arguments:
|
code » | |||
Sets a named child node of the current node.
|
code » | |||
![]()
Set the name of the node relative to the parent node
Arguments:
|
code » |
![]()
No description.
|
Code » | |
![]()
Delimiter for end of JSON data in response.
null = ends at last character of response
|
Code » | |
![]()
Delimiter for start of JSON data in response.
null = starts at first character of response
|
Code » | |
No description.
|
Code » | |
![]()
No description.
|
Code » | |
No description.
|
Code » |
![]()
No description.
|
Code » |
![]()
Load or reload the backing data for this node
|
Code » |
![]()
No description.
|
Code » |