public class WorksheetFormatStatus extends Object
worksheet is conform to the expected format (isFormatOk(). columnMismatches infos.| Constructor and Description |
|---|
WorksheetFormatStatus(TemplateWorksheet worksheet) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllMismatches(Map<ColumnMismatch,Set<TemplateColumn>> columnMismatches)
Will add all given columnMismatches to this.
|
void |
addMismatch(ColumnMismatch mismatchType,
TemplateColumn colType)
Will store the column mismatch.
|
void |
addMismatches(ColumnMismatch mismatchType,
Collection<TemplateColumn> columnsMismatched)
Add mismatches to the worksheed format status.
|
void |
addWorksheetMismatch(WorksheetMismatch worksheetMismatch)
Store the
WorksheetMismatch. |
Map<ColumnMismatch,Set<String>> |
getColumnNamesByMismatches() |
TemplateWorksheet |
getWorksheet() |
boolean |
isFormatOk() |
public WorksheetFormatStatus(TemplateWorksheet worksheet)
public TemplateWorksheet getWorksheet()
public void addMismatches(ColumnMismatch mismatchType, Collection<TemplateColumn> columnsMismatched)
mismatchType - : the concernedColumnMismatchcolumnsMismatched - : a collection of the concerned TemplateColumnpublic void addAllMismatches(Map<ColumnMismatch,Set<TemplateColumn>> columnMismatches)
columnMismatchescolumnMismatches - : the mismatches to store herepublic boolean isFormatOk()
public Map<ColumnMismatch,Set<String>> getColumnNamesByMismatches()
TemplateColumn.getFullName()) by the ColumnMismatchpublic void addWorksheetMismatch(WorksheetMismatch worksheetMismatch)
WorksheetMismatch.worksheetMismatch - public void addMismatch(ColumnMismatch mismatchType, TemplateColumn colType)
mismatchType - colType - Copyright © 2010–2017 Henix, henix.fr. All rights reserved.