com.extentech.ExtenXLS.binder
Class SimpleCellBinder

java.lang.Object
  extended by com.extentech.ExtenXLS.binder.SimpleCellBinder

public class SimpleCellBinder
extends java.lang.Object

SimpleCellBinder is a lightweight and reduced-complexity CellBinder for use with token-based Spreadsheet mappings. SimpleCellBinder maps SimpleDataObject data to Spreadsheets. SimpleDataObjects can be wrapped around JSON output and provide a lightweight Object mapping to JSON data sources.

Author:
john :: Feb 7, 2010 :: Copyright ©2011Extentech Inc.

Field Summary
static java.lang.String START_TOKEN
           
 
Constructor Summary
SimpleCellBinder(java.lang.String templatename, SimpleDataObject dataObject)
          bind data to the template file
SimpleCellBinder(WorkBook book, SimpleDataObject dataObject)
          Constructor takes a workbook and dataobject and automatically maps the data.
 
Method Summary
 java.util.List bind()
          execute the databinding, returns list of inserted rows
 void findTokens(WorkBook bk)
          returns a list of all cells within the workbook containing the mapping tokens.
 java.util.HashMap getGlobalVariableList()
           
static void main(java.lang.String[] args)
           
 void setGlobalVariableList(java.util.HashMap globalVariableList)
           
static void testWrite(WorkBookHandle b, java.lang.String nm)
          write out an xls file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_TOKEN

public static java.lang.String START_TOKEN
Constructor Detail

SimpleCellBinder

public SimpleCellBinder(java.lang.String templatename,
                        SimpleDataObject dataObject)
bind data to the template file

Parameters:
templatename -
dataObject -

SimpleCellBinder

public SimpleCellBinder(WorkBook book,
                        SimpleDataObject dataObject)
Constructor takes a workbook and dataobject and automatically maps the data.

Parameters:
book -
dataObject -
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -

bind

public java.util.List bind()
execute the databinding, returns list of inserted rows

Returns:

testWrite

public static final void testWrite(WorkBookHandle b,
                                   java.lang.String nm)
write out an xls file

Parameters:
b -
nm -

findTokens

public void findTokens(WorkBook bk)
returns a list of all cells within the workbook containing the mapping tokens.

Parameters:
bk -

getGlobalVariableList

public java.util.HashMap getGlobalVariableList()
Returns:
Returns the globalVariableList.

setGlobalVariableList

public void setGlobalVariableList(java.util.HashMap globalVariableList)
Parameters:
globalVariableList - The globalVariableList to set.


Copyright © 2011 Extentech Inc. All Rights Reserved.