public class SheetCloner
extends java.lang.Object
SheetCloner clone sheets and can set them up for implicit
collections processing when a collection is detected as part of an
expression in a sheet name.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
BEGIN_METADATA |
Determines the beginning of metadata text inside sheet names only.
|
| Constructor | Description |
|---|---|
SheetCloner(org.apache.poi.ss.usermodel.Workbook workbook) |
Constructs an
SheetCloner that will work on cloning
the given source Sheet, in the given WorkbookContext. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
cloneForSheetSpecificBeans(java.util.List<java.lang.String> templateSheetNames,
java.util.List<java.lang.String> newSheetNames) |
Clones and moves
Sheets around as necessary according to
the given template and new sheet names lists. |
SheetTransformer.AfterOffSheetProperties |
getMissingPropertiesSetter() |
Returns an object that can set the missing properties on a
Sheet
after it has been moved and/or renamed. |
java.util.Map<java.lang.String,java.lang.Object> |
setupForImplicitCloning(org.apache.poi.ss.usermodel.Sheet sheet,
java.util.Map<java.lang.String,java.lang.Object> beans,
WorkbookContext context) |
Performs all manipulation necessary for implicit cloning, so that the
SheetTransformer can transform the resultant sheets as if
they were already there. |
public static final java.lang.String BEGIN_METADATA
CollectionsTransformer.BEGIN_METADATA)
because the normal cells beginning of metadata contains a character that
isn't allowed in Excel sheet names.public SheetCloner(org.apache.poi.ss.usermodel.Workbook workbook)
SheetCloner that will work on cloning
the given source Sheet, in the given WorkbookContext.workbook - The Workbook that contains Sheets
that may be cloned/removed.public SheetTransformer.AfterOffSheetProperties getMissingPropertiesSetter()
Sheet
after it has been moved and/or renamed. This was moved to
SheetCloner for version 0.9.1.Sheet.public void cloneForSheetSpecificBeans(java.util.List<java.lang.String> templateSheetNames,
java.util.List<java.lang.String> newSheetNames)
Sheets around as necessary according to
the given template and new sheet names lists. This method initializes
the list of Missing Clone Sheet Properties. The logic for this method
was extracted out of ExcelTransformer for version 0.9.1.templateSheetNames - The List of template sheet names.newSheetNames - The List of new sheet names.public java.util.Map<java.lang.String,java.lang.Object> setupForImplicitCloning(org.apache.poi.ss.usermodel.Sheet sheet,
java.util.Map<java.lang.String,java.lang.Object> beans,
WorkbookContext context)
SheetTransformer can transform the resultant sheets as if
they were already there.sheet - The Sheet on which to perform implicit cloning.beans - The beans map.context - The WorkbookContext.Map to use for transformation, which may
be beans.Copyright © 2012–2018 Jett Team. All rights reserved.