org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements
Class EPCell

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.BaseElementProcessor
          extended by org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.EPCell
All Implemented Interfaces:
Component, LogEnabled, ElementProcessor, POIFSElementProcessor, LocaleAware

public class EPCell
extends BaseElementProcessor
implements LocaleAware

Implementation of ElementProcessor to handle the "Cell" tag. This element has several attributes and may contain other elements.

Version:
CVS $Id: EPCell.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marc Johnson (marc_johnson27591@hotmail.com)

Field Summary
 
Fields inherited from interface org.apache.cocoon.components.elementprocessor.ElementProcessor
ROLE
 
Constructor Summary
EPCell()
          constructor
 
Method Summary
 void endProcessing()
          end processing -- apply content to the cell.
protected  org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell getCell()
          override of getCell()
 int getCellType()
           
 int getColumn()
           
 int getColumns()
           
 String getContent()
           
 int getExpressionId()
           
 String getFormat()
           
 int getRow()
           
 int getRows()
           
 void initialize(Attribute[] attributes, ElementProcessor parent)
          Override of initialize() implementation
 void setLocale(String locale)
          Set the locale for a given element processor.
 
Methods inherited from class org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.BaseElementProcessor
acceptCharacters, acceptWhitespaceCharacters, getAncestor, getAttributes, getData, getFilesystem, getParent, getSheet, getValue, getWorkbook, setFilesystem
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPCell

public EPCell()
constructor

Method Detail

getColumn

public int getColumn()
              throws IOException
Returns:
column
Throws:
IOException

getRow

public int getRow()
           throws IOException
Returns:
row
Throws:
IOException

getExpressionId

public int getExpressionId()
                    throws IOException,
                           NullPointerException
Returns:
expression id
Throws:
IOException
NullPointerException

getColumns

public int getColumns()
               throws IOException,
                      NullPointerException
Returns:
columns
Throws:
IOException
NullPointerException

getRows

public int getRows()
            throws IOException,
                   NullPointerException
Returns:
rows
Throws:
IOException
NullPointerException

getCellType

public int getCellType()
                throws IOException,
                       NullPointerException
Returns:
cell type as a public member of CellType
Throws:
IOException
NullPointerException

getFormat

public String getFormat()
                 throws IOException
Returns:
format string; null if no such attribute
Throws:
IOException

initialize

public void initialize(Attribute[] attributes,
                       ElementProcessor parent)
                throws IOException
Override of initialize() implementation

Specified by:
initialize in interface ElementProcessor
Overrides:
initialize in class BaseElementProcessor
Parameters:
attributes - the array of Attribute instances; may be empty, will never be null
parent - the parent ElementProcessor; may be null
Throws:
IOException - if anything is wrong

getContent

public String getContent()

endProcessing

public void endProcessing()
                   throws IOException
end processing -- apply content to the cell.

Specified by:
endProcessing in interface ElementProcessor
Overrides:
endProcessing in class BaseElementProcessor
Throws:
IOException

getCell

protected org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell getCell()
override of getCell()

Overrides:
getCell in class BaseElementProcessor
Returns:
the cell

setLocale

public void setLocale(String locale)
Description copied from interface: LocaleAware
Set the locale for a given element processor.

Specified by:
setLocale in interface LocaleAware


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.