7646 |
13 Mar 19 |
nicklas |
1 |
package net.sf.basedb.util.excel; |
7646 |
13 Mar 19 |
nicklas |
2 |
|
7646 |
13 Mar 19 |
nicklas |
3 |
import net.sf.basedb.util.formatter.Formatter; |
7646 |
13 Mar 19 |
nicklas |
4 |
|
7646 |
13 Mar 19 |
nicklas |
5 |
/** |
7646 |
13 Mar 19 |
nicklas |
Interface that is intended to be implemented by formatters |
7646 |
13 Mar 19 |
nicklas |
that also want to support generating output for excel. |
7646 |
13 Mar 19 |
nicklas |
8 |
|
7646 |
13 Mar 19 |
nicklas |
Note that implementations may convert the input value T to |
7646 |
13 Mar 19 |
nicklas |
a different output value type E. |
7646 |
13 Mar 19 |
nicklas |
11 |
|
7646 |
13 Mar 19 |
nicklas |
@author nicklas |
7646 |
13 Mar 19 |
nicklas |
@since 3.15 |
7646 |
13 Mar 19 |
nicklas |
@see Formatter |
7646 |
13 Mar 19 |
nicklas |
15 |
*/ |
7646 |
13 Mar 19 |
nicklas |
16 |
public interface ExcelFormatter<T, E> |
7646 |
13 Mar 19 |
nicklas |
17 |
{ |
7646 |
13 Mar 19 |
nicklas |
18 |
|
7646 |
13 Mar 19 |
nicklas |
19 |
/** |
7646 |
13 Mar 19 |
nicklas |
Convert and format the given value to an Excel |
7646 |
13 Mar 19 |
nicklas |
value. If the value is null the implementation may |
7646 |
13 Mar 19 |
nicklas |
return null to create an empty cell or it may return |
7646 |
13 Mar 19 |
nicklas |
another non-null value. |
7646 |
13 Mar 19 |
nicklas |
24 |
*/ |
7646 |
13 Mar 19 |
nicklas |
25 |
public ExcelValue<E> toExcelValue(T value); |
7646 |
13 Mar 19 |
nicklas |
26 |
|
7646 |
13 Mar 19 |
nicklas |
27 |
} |