Main Page | Packages | Class Tree | Index | Help

xp.data

class NodeListDecoder

Array
  |
  +--xp.data.ArrayProxy
        |
        +--xp.data.RowsetDecoder
              |
              +--xp.data.NodeListDecoder


class NodeListDecoder
extends RowsetDecoder

An XML child nodelist that can be populated on demand


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Fields inherited from class xp.data.RowsetDecoder

schema, strict

Constructor

public
NodeListDecoder ( data: Array, lazy: Boolean)
Create a new instance

Method Summary

public
itemToNode ( data: Object, nodeName: String ): XMLNode
Converts an item to an XMLNode

public
nodeToItem ( node: XMLNode ): Object
Converts a node to an item

Methods inherited from class xp.data.RowsetDecoder

itemToNode, nodeToItem, toXML

Methods inherited from class xp.data.ArrayProxy

onNeedData



Constructor Documentation

NodeListDecoder

public function NodeListDecoder(data: Array,
 lazy: Boolean)
Create a new instance

Parameters:
data
An array of XMLNodes or an XMLNode whose childNodes are to be encoded
lazy
A Boolean value if true the nodes are converted on demand rather than immediately

Method Documentation

itemToNode

public function itemToNode(data: Object,
 nodeName: String): XMLNode
Converts an item to an XMLNode

Overrides:

Parameters:
data
The data item to convert
nodeName
itemName The name of the node to be created
Returns:
The converted node

nodeToItem

public function nodeToItem(node: XMLNode): Object
Converts a node to an item

Overrides:

Returns:
The converted item


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc