Main Page | Packages | Class Tree | Index | Help

xp.data

class RowsetDecoder

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

All Known Subclasses: NodeListDecoder

class RowsetDecoder
extends ArrayProxy

Converts an array of XMLNodes representing a rowset to an array of objects


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
schema: Object
Schema used to generate the xml document from the rowset

public
strict: Boolean
Controls how an item is converted to a node

Constructor

public
RowsetDecoder ( data, 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

public
toXML ( ): XML
Converts the array into an XML document

Methods inherited from class xp.data.ArrayProxy

onNeedData



Field Documentation

schema

public var schema: Object
Schema used to generate the xml document from the rowset

strict

public var strict: Boolean
Controls how an item is converted to a node

If true only items that are in the scheam will be converted to the XMLNode


Constructor Documentation

RowsetDecoder

public function RowsetDecoder(data,
 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

Parameters:
data
The data item to convert
nodeName
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

Returns:
The converted item

toXML

public function toXML(): XML
Converts the array into an XML document

Returns:
The xml document


The documentation was generated from the following file:


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