EGSimpleTableCreator Class Reference

Collaboration diagram for EGSimpleTableCreator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 EGSimpleTableCreator (File file) throws IOException
String html ()

Protected Attributes

final Logger log = Logger.getLogger(EGSimpleTableParser.class)

Static Package Functions

 [static initializer]

Private Member Functions

void appendAttribute (String attribute, Object value)
void appendCell (HSSFCell cell)
void appendCellStyle (HSSFCellStyle cellStyle, short i)
void appendColorForKey (Object object, String key)
void appendDataFormatForKey (Object object, String key)
void appendFont (HSSFFont font, short i)
void appendRow (HSSFRow row)
void appendSheet (HSSFSheet sheet, String name)
void appendValueForKey (Object object, String key)
void appendValueForKeyWithMapping (Object object, String key, NSDictionary mapping)
void appendWorkbook ()

Static Private Member Functions

static NSDictionary dictionaryFromClassConstantDefinition (Class clazz, NSDictionary definition)
static NSDictionary dictionaryFromClassConstants (Class clazz, NSArray constants)

Private Attributes

StringBuffer _html
HSSFWorkbook _workbook

Static Private Attributes

static NSDictionary _cellDef
static NSDictionary _fontDef
static NSDictionary _styleDef


Detailed Description

Dumps a workbook into the "HTML" needed to re-create it by the EGSimpleTableParser. Uses the property list Codes.plist to re-create the needed class constant dictionary, so the output uses ALING_GENERAL instead of 0.
Author:
ak

Constructor & Destructor Documentation

EGSimpleTableCreator ( File  file  )  throws IOException


Member Function Documentation

[static initializer] (  )  [static, package]

void appendAttribute ( String  attribute,
Object  value 
) [private]

void appendCell ( HSSFCell  cell  )  [private]

Parameters:
cell 

void appendCellStyle ( HSSFCellStyle  cellStyle,
short  i 
) [private]

Parameters:
cellStyle 

void appendColorForKey ( Object  object,
String  key 
) [private]

void appendDataFormatForKey ( Object  object,
String  key 
) [private]

void appendFont ( HSSFFont  font,
short  i 
) [private]

Parameters:
font 

void appendRow ( HSSFRow  row  )  [private]

Parameters:
row 

void appendSheet ( HSSFSheet  sheet,
String  name 
) [private]

Parameters:
sheet 

void appendValueForKey ( Object  object,
String  key 
) [private]

void appendValueForKeyWithMapping ( Object  object,
String  key,
NSDictionary  mapping 
) [private]

void appendWorkbook (  )  [private]

static NSDictionary dictionaryFromClassConstantDefinition ( Class  clazz,
NSDictionary  definition 
) [static, private]

static NSDictionary dictionaryFromClassConstants ( Class  clazz,
NSArray  constants 
) [static, private]

String html (  ) 


Member Data Documentation

NSDictionary _cellDef [static, private]

NSDictionary _fontDef [static, private]

StringBuffer _html [private]

NSDictionary _styleDef [static, private]

HSSFWorkbook _workbook [private]

final Logger log = Logger.getLogger(EGSimpleTableParser.class) [protected]

logging support


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:01 2012 for Project Wonder by  doxygen 1.5.8