Difference between revisions of "CollectionDataProvider"

From GreenVulcano Wiki
Jump to: navigation, search
Line 2: Line 2:
 
At the moment, only pull parser is handled, using the AXIOM implementation.
 
At the moment, only pull parser is handled, using the AXIOM implementation.
 
Called fields are the following:
 
Called fields are the following:
* START_DOCUMENT,
+
* START_DOCUMENT
* END_DOCUMENT,
+
* END_DOCUMENT
* NAMESPACE,
+
* NAMESPACE
* PROCESSING_INSTRUCTION,
+
* PROCESSING_INSTRUCTION
* ENTITY_REFERENCE,
+
* ENTITY_REFERENCE
* DTD,
+
* DTD
* ATTRIBUTE,
+
* ATTRIBUTE
* START_ELEMENT,
+
* START_ELEMENT
* END_ELEMENT,
+
* END_ELEMENT
* CHARACTERS,
+
* CHARACTERS
  
 
In addition to 'input' and 'output' variables, following are bound to the context of expressions:
 
In addition to 'input' and 'output' variables, following are bound to the context of expressions:

Revision as of 11:29, 5 March 2012

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.

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.