Difference between revisions of "CollectionDataProvider"

From GreenVulcano Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
==Description==
 
This DataProvider, reads an XML with a pull/push parser and executes fields bound to xml events.
 
This DataProvider, reads an XML with a pull/push parser and executes fields bound to xml events.
 
At the moment, only pull parser is handled, using the AXIOM implementation.
 
At the moment, only pull parser is handled, using the AXIOM implementation.
Line 17: Line 18:
 
* parser: the pull/push parser.
 
* parser: the pull/push parser.
  
 +
=={{GVESB}} Configuration==
 
The following table shows the CollectionDataProvider element's attributes:
 
The following table shows the CollectionDataProvider element's attributes:
 
{|class="gvtable"
 
{|class="gvtable"

Revision as of 16:34, 9 November 2012

Description

This DataProvider, reads an XML with a pull/push parser and executes fields bound to xml events. 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:

  • environment: an helper map to pass objects between field;
  • parser: the pull/push parser.

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.