Package com.bld.common.spreadsheet.utils
Class ExcelUtils
java.lang.Object
com.bld.common.spreadsheet.utils.ExcelUtils
The Class ExcelUtils.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcoordinateCalculation(int row, int idColumn, boolean isBlockColumn, boolean isBlockRow) Calcolo coordinate function.static DoubleEvaluate.static StringgetKeyColumn(org.apache.poi.ss.usermodel.Sheet sheet, String key) Gets the key column.static StringgetNameParameter(String parameter) Gets the name parameter.static <T> Class<T> Gets the t class.static <T> Class<T> Gets the t class.static MatcherMatcher.static shortrowHeight(int rowHeight) Hight row.static shortwidthColumn(int widthColumn) Width column.
-
Field Details
-
ANNOTATIONS
The Constant ANNOTATIONS.- See Also:
-
ANNOTATION_DATA
The Constant ANNOTATION_DATA.- See Also:
-
AUTO_SIZE_HEIGHT
public static final short AUTO_SIZE_HEIGHTThe Constant AUTO_SIZE_HEIGHT.- See Also:
-
ENV_SHEET_NAME
The Constant ENV_SHEET_NAME.- See Also:
-
-
Constructor Details
-
ExcelUtils
public ExcelUtils()
-
-
Method Details
-
getNameParameter
Gets the name parameter.- Parameters:
parameter- the parameter- Returns:
- the name parameter
-
coordinateCalculation
public static String coordinateCalculation(int row, int idColumn, boolean isBlockColumn, boolean isBlockRow) Calcolo coordinate function.- Parameters:
row- the rowidColumn- the id columnisBlockColumn- the is block columnisBlockRow- the is block row- Returns:
- the string
-
getKeyColumn
Gets the key column.- Parameters:
sheet- the sheetkey- the key- Returns:
- the key column
-
widthColumn
public static short widthColumn(int widthColumn) Width column.- Parameters:
widthColumn- the width column- Returns:
- the short
-
rowHeight
public static short rowHeight(int rowHeight) Hight row.- Parameters:
rowHeight- the hight row- Returns:
- the short
-
getTClass
Gets the t class.- Type Parameters:
T- the generic type- Parameters:
entity- the entity- Returns:
- the t class
-
getTClass
Gets the t class.- Type Parameters:
T- the generic type- Parameters:
entity- the entityi- the i- Returns:
- the t class
-
evaluate
Evaluate.- Parameters:
exprenssionIndex- the exprenssion indexparam- the paramvalue- the value- Returns:
- the double
-
matcher
Matcher.- Parameters:
param- the paramfunction- the function- Returns:
- the matcher
-