Difference between revisions of "CollectionDataProvider"

From GreenVulcano Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
==Description==
 
==Description==
This DataProvider, reads an XML with a pull/push parser and executes fields bound to xml events.
+
This elements transforms a GVBuffer into a Collection.
At the moment, only pull parser is handled, using the AXIOM implementation.
 
Called fields are the following:
 
* START_DOCUMENT
 
* END_DOCUMENT
 
* NAMESPACE
 
* PROCESSING_INSTRUCTION
 
* ENTITY_REFERENCE
 
* DTD
 
* ATTRIBUTE
 
* START_ELEMENT
 
* END_ELEMENT
 
* CHARACTERS
 
  
In addition to 'input' and 'output' variables, following are bound to the context of expressions:
+
The Collection is constructed using the internal Field Expression (tipically is used only one Field element).
* environment: an helper map to pass objects between field;
+
* parser: the pull/push parser.
 
  
 
=={{GVESB}} Configuration==
 
=={{GVESB}} Configuration==
Line 33: Line 20:
  
 
Might contain one or more sub-element [[Field]].
 
Might contain one or more sub-element [[Field]].
 +
 +
{{VOTE}}

Latest revision as of 16:35, 9 November 2012

Description

This elements transforms a GVBuffer into a Collection.

The Collection is constructed using the internal Field Expression (tipically is used only one Field element).


GreenVulcano® ESB Configuration

The following table shows the CollectionDataProvider element's attributes:

Attribute Type Description
name required The attribute's value cannot be null.
type fixed This attribute must assume the value dataProvider.
class fixed This attribute must assume the value it.greenvulcano.gvesb.gvdp.impl.CollectionDataProvider.
source-selector optional OGNL expression to provide the root object to be passed to the expression stated in the 'Field' items.

Might contain one or more sub-element Field.

{{#w4grb_rate:}} <w4grb_ratinglist latestvotes items="5" nosort/>