com.extentech.ExtenXLS.binder
Class XMLCellBinder

java.lang.Object
  extended by com.extentech.ExtenXLS.binder.ExtenXLSReportFactory
      extended by com.extentech.ExtenXLS.binder.XMLCellBinder

public class XMLCellBinder
extends ExtenXLSReportFactory

A CellBinder Factory that reads an XML Stream and dynamically binds input XML node values to RDF defined template ranges.

Since:
Version:
Author:
John McMahon -- Copyright ©2011Extentech Inc.
See Also:

Constructor Summary
XMLCellBinder(com.extentech.toolkit.LogOutputter logr)
           
XMLCellBinder(com.extentech.toolkit.LogOutputter logr, java.lang.String wd)
           
 
Method Summary
 byte[] generateXMLReport(java.util.Map vars, java.lang.String formatXML)
          Generate Report and convert the output to XML
static void main(java.lang.String[] args)
          Bind Cells from the Command Line
 byte[] reverseMapToXML(WorkBook bk, RelationalObject xmlMappings)
          takes XML mapping file *based* on RDF Format and workbook and create XML based on cellrange elements in RDF and values in book reads in nodes where parambinding string is in the form of: leafnode|xx|xx:xx:Node-type[:subnode-type ...]]
 
Methods inherited from class com.extentech.ExtenXLS.binder.ExtenXLSReportFactory
createNamedRangeDataObjectX, generateReport, generateReport, generateWorkBookHandle, generateWorkBookHandle, getDataObjects, getDBConnectionCellBinders, getParentDataObject, getRESTEmit, getWorkBook, getWorkingdir, init, init, setDebugLevel, setValues, setWorkBook, setWorkingdir, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLCellBinder

public XMLCellBinder(com.extentech.toolkit.LogOutputter logr,
                     java.lang.String wd)
Parameters:
logr -
wd -

XMLCellBinder

public XMLCellBinder(com.extentech.toolkit.LogOutputter logr)
Parameters:
logr -
Method Detail

generateXMLReport

public byte[] generateXMLReport(java.util.Map vars,
                                java.lang.String formatXML)
                         throws java.lang.Exception
Generate Report and convert the output to XML

Parameters:
vars - map of dataobjects used as source
Returns:
byte array representing XML output
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
Bind Cells from the Command Line

Parameters:
args -

reverseMapToXML

public byte[] reverseMapToXML(WorkBook bk,
                              RelationalObject xmlMappings)
takes XML mapping file *based* on RDF Format and workbook and create XML based on cellrange elements in RDF and values in book reads in nodes where parambinding string is in the form of: leafnode|xx|xx:xx:Node-type[:subnode-type ...]]

Parameters:
bk - workbookhandle
RelationalObject - source XML mappings
Returns:
bytes representing XML stream


Copyright © 2011 Extentech Inc. All Rights Reserved.