WriteHolder.java
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.taover.easyexcel.write.metadata.holder;
import java.util.List;
import java.util.Map;
import com.taover.easyexcel.metadata.ConfigurationHolder;
import com.taover.easyexcel.write.handler.WriteHandler;
import com.taover.easyexcel.write.property.ExcelWriteHeadProperty;
/**
*
* Get the corresponding Holder
*
* @author Jiaju Zhuang
**/
public interface WriteHolder extends ConfigurationHolder {
/**
* What 'ExcelWriteHeadProperty' does the currently operated cell need to execute
*
* @return
*/
ExcelWriteHeadProperty excelWriteHeadProperty();
/**
* What handler does the currently operated cell need to execute
*
* @return
*/
Map<Class<? extends WriteHandler>, List<WriteHandler>> writeHandlerMap();
/**
* create your own write handler.
*
* @return
*/
Map<Class<? extends WriteHandler>, List<WriteHandler>> ownWriteHandlerMap();
/**
* Is to determine if a field needs to be ignored
*
* @param fieldName
* @param columnIndex
* @return
*/
boolean ignore(String fieldName, Integer columnIndex);
/**
* Whether a header is required for the currently operated cell
*
* @return
*/
boolean needHead();
/**
* Whether need automatic merge headers.
*
* @return
*/
boolean automaticMergeHead();
/**
* Writes the head relative to the existing contents of the sheet. Indexes are zero-based.
*
* @return
*/
int relativeHeadRowIndex();
}