net.sf.jxls.transformation
Class DuplicateTransformationByColumns

java.lang.Object
  extended by net.sf.jxls.transformation.BlockTransformation
      extended by net.sf.jxls.transformation.DuplicateTransformationByColumns

public class DuplicateTransformationByColumns
extends BlockTransformation

Author:
Leonid Vysochyn

Field Summary
(package private)  java.util.List cells
           
(package private)  int colNum
           
(package private)  int duplicateNumber
           
(package private)  int rowNum
           
 
Fields inherited from class net.sf.jxls.transformation.BlockTransformation
block, sheetName
 
Constructor Summary
DuplicateTransformationByColumns(Block block, int duplicateNumber)
           
 
Method Summary
 java.lang.String cellToString(int rowNum, int colNum, java.lang.String sheetName)
           
 boolean equals(java.lang.Object obj)
           
 Block getBlockAfterTransformation()
           
 java.lang.String getDuplicatedCellRef(java.lang.String sheetName, java.lang.String cell, int duplicateBlock)
           
 int hashCode()
           
 java.lang.String toString()
           
 java.util.List transformCell(Point p)
          Transforms given spreadsheet cell
 java.util.List transformCell(java.lang.String sheetName, CellRef cellRef)
          Transforms given spreadsheet cell
 
Methods inherited from class net.sf.jxls.transformation.BlockTransformation
contains, contains, getBlock, setBlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

rowNum

int rowNum

colNum

int colNum

duplicateNumber

int duplicateNumber

cells

java.util.List cells
Constructor Detail

DuplicateTransformationByColumns

public DuplicateTransformationByColumns(Block block,
                                        int duplicateNumber)
Method Detail

getBlockAfterTransformation

public Block getBlockAfterTransformation()
Specified by:
getBlockAfterTransformation in class BlockTransformation

transformCell

public java.util.List transformCell(Point p)
Description copied from class: BlockTransformation
Transforms given spreadsheet cell

Specified by:
transformCell in class BlockTransformation
Parameters:
p - - Point representing spreadsheet cell to transform
Returns:
List of Point objects which are result of source cell transformation

getDuplicatedCellRef

public java.lang.String getDuplicatedCellRef(java.lang.String sheetName,
                                             java.lang.String cell,
                                             int duplicateBlock)
Overrides:
getDuplicatedCellRef in class BlockTransformation

transformCell

public java.util.List transformCell(java.lang.String sheetName,
                                    CellRef cellRef)
Description copied from class: BlockTransformation
Transforms given spreadsheet cell

Specified by:
transformCell in class BlockTransformation
Parameters:
sheetName - - indicates sheet containing cell to transform
cellRef - - CellRef object representing spreadsheet cell to transform
Returns:
List of cell names which are result of source cell transformation

cellToString

public java.lang.String cellToString(int rowNum,
                                     int colNum,
                                     java.lang.String sheetName)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class BlockTransformation

hashCode

public int hashCode()
Overrides:
hashCode in class BlockTransformation

toString

public java.lang.String toString()
Overrides:
toString in class BlockTransformation


Copyright 2005-2005-2007 jXLS Team. All Rights Reserved.