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


Extends Ext.data.XmlReader - See Ext.data.XmlReader.
XSL Reader for POI search service of Regione Sardegna
Defined in: DirectoryPOI_XLSReader.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
XSL Reader for POI search service of Regione Sardegna
Method Summary
Method Attributes Method Name and Description
 
addOptXlsPOILinkTab(format, link, node, tagname, sep)
get 'POILinkTab' info from a xml segment
 
addOptXlsPOINumResults(format, numresult, node, tagname, sep)
get 'POINumResults' info from a xml segment
 
addOptXlsPOIType(format, type, node, tagname, sep)
get 'POIType' info from a xml segment
 
addOptXlsText(format, text, node, tagname, sep)
get 'Text' info from a xml segment
 
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.DirectoryPOI_XLSReader(meta, recordType)
XSL Reader for POI search service of Regione Sardegna
Parameters:
{object} meta
object configuration
{Ext.data.Record} recordType
object definition
Method Detail
{string} addOptXlsPOILinkTab(format, link, node, tagname, sep)
get 'POILinkTab' info from a xml segment
Parameters:
{string} format
xml reader and writer
{string} link
http link
{string} node
xml node
{string} tagname
tag from where extract data
{string} sep
separator character
Returns:
{string} http link

{number} addOptXlsPOINumResults(format, numresult, node, tagname, sep)
get 'POINumResults' info from a xml segment
Parameters:
{string} format
xml reader and writer
{number} numresult
number of search result
{string} node
xml node
{string} tagname
tag from where extract data
{string} sep
separator character
Returns:
{number} number of search result

{number} addOptXlsPOIType(format, type, node, tagname, sep)
get 'POIType' info from a xml segment
Parameters:
{string} format
xml reader and writer
{string} type
category description
{string} node
xml node
{string} tagname
tag from where extract data
{string} sep
separator character
Returns:
{number} category description

{object} addOptXlsText(format, text, node, tagname, sep)
get 'Text' info from a xml segment
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

{array} extractData(root)
create array of record extracting data from a xml
Parameters:
{string} root
xml document
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
xml document
Returns:
{object} array of record plus search informations
© 2013 Regione Autonoma della Sardegna