MAPPE DELLA SARDEGNA
sardegnamappe api  ›  api documentation  ›  classe
Class framework.data.RoutingOpenLS_XLSReader


Extends Ext.data.XmlReader - See Ext.data.XmlReader.
XSL reader for rounting service of Regione Sardegna
Defined in: RoutingOpenLS_XLSReader.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
XSL reader for routing service of Regione Sardegna
Method Summary
Method Attributes Method Name and Description
 
addOptXlsPOINumResults(format, text, node, tagname, sep)
get 'POINumResults' info from a xml segment
 
addOptXlsPOIType(format, text, node, tagname, sep)
get 'POIType' info from a xml segment
 
addOptXlsText(format, text, node, tagname, sep)
get 'Text' info from a xml segment
 
addOptXlsTextAddress(format, text, node, tagname, sep)
get a content node by a xml tag name
 
 
create array of record extracting data from a xml
 
read(response)
This method is only used by a DataProxy which has retrieved data from a remote server.
 
fill up a object with query result
Class Detail
framework.data.RoutingOpenLS_XLSReader(meta, recordType)
XSL reader for routing service of Regione Sardegna
Parameters:
{object} meta
{Ext.data.Record} recordType
Method Detail
{object} addOptXlsPOINumResults(format, text, node, tagname, sep)
get 'POINumResults' info from a xml segment
Parameters:
{string} format
{string} text
{string} node
{string} tagname
{string} sep
Returns:
{object}

{object} addOptXlsPOIType(format, text, node, tagname, sep)
get 'POIType' info from a xml segment
Parameters:
{string} format
{string} text
{string} node
{string} tagname
{string} sep
Returns:
{object}

{object} addOptXlsText(format, text, node, tagname, sep)
get 'Text' info from a xml segment
Parameters:
{string} format
{string} text
{string} node
{string} tagname
{string} sep
Returns:
{object}

{object} addOptXlsTextAddress(format, text, node, tagname, sep)
get a content node by a xml tag name
Parameters:
{string} format
xml reader and writer
{string} text
html text
{string} node
xml node
{string} tagname
tag from where extract data
{string} sep
separator character
Returns:
{object} html text

calculateTime(time)
Parameters:
time

{array} extractData(root)
create array of record extracting data from a xml
Parameters:
{string} root
Returns:
{array} record

{Object} read(response)
This method is only used by a DataProxy which has retrieved data from a remote server. Create responseXML if the responseText is a XML format
Parameters:
{Object} response
The XHR object which contains the parsed XML document. The response is expected to contain a method called 'responseXML' that returns an XML document object.
Returns:
{Object} records A data block which is used by an Ext.data.Store as a cache of Ext.data.Records.

{object} readRecords(doc)
fill up a object with query result
Parameters:
{string} doc
Returns:
{object}
© 2013 Regione Autonoma della Sardegna