Class framework.data.GeocoderOpenLS_XLSReader
Extends
Ext.data.XmlReader - See Ext.data.XmlReader.
XSL reader for address search service of Regione Sardegna
Defined in: GeocoderOpenLS_XLSReader.js.
Class Summary
Constructor Attributes |
Constructor Name and Description |
|
XSL reader for address search service of Regione Sardegna
|
Method Summary
Method Attributes |
Method Name and Description |
|
get a content node by a xml tag name
|
|
create array of record extracting data from a xml
|
|
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.GeocoderOpenLS_XLSReader(meta, recordType)
XSL reader for address search service of Regione Sardegna
- Parameters:
-
{object} meta
- object configuration
-
{Ext.data.Record} recordType
- object definition
Method Detail
{object}
addOptXlsText(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
{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