Package bld.common.spreadsheet.utils
Class SpreadsheetUtils
java.lang.Object
bld.common.spreadsheet.utils.SpreadsheetUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Annotation>
TgetAnnotation(Class<?> classExcel, Class<T> classAnnotation) Gets the annotation.static <T extends Annotation>
TgetAnnotation(Field field, Class<T> classAnnotation) Gets the annotation.getListField(Class<?> classComponentExcel) Gets the list field.getMapField(Class<?> classComponentExcel) Gets the map field.static <T,K extends Annotation>
TreflectionAnnotation(T entity, K annotation) Reflection annotation.static voidwriteToFile(String pathFile, String fileName, String typeFile, byte[] data) Write to file.
-
Field Details
-
SHEET_NAME_SIZE
public static final int SHEET_NAME_SIZEThe Constant SHEET_NAME_SIZE.- See Also:
-
-
Constructor Details
-
SpreadsheetUtils
public SpreadsheetUtils()
-
-
Method Details
-
getAnnotation
Gets the annotation.- Type Parameters:
T- the generic type- Parameters:
classExcel- the class excelclassAnnotation- the class annotation- Returns:
- the annotation
-
getAnnotation
Gets the annotation.- Type Parameters:
T- the generic type- Parameters:
field- the fieldclassAnnotation- the class annotation- Returns:
- the annotation
-
reflectionAnnotation
Reflection annotation.- Type Parameters:
T- the generic typeK- the key type- Parameters:
entity- the entityannotation- the annotation- Returns:
- the t
-
getListField
Gets the list field.- Parameters:
classComponentExcel- the class component excel- Returns:
- the list field
-
getMapField
Gets the map field.- Parameters:
classComponentExcel- the class component excel- Returns:
- the map field
-
writeToFile
Write to file.- Parameters:
pathFile- the path filefileName- the file nametypeFile- the type filedata- the dati
-