• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hee9841 / excel-module / #38

25 Apr 2025 09:07AM UTC coverage: 82.791%. Remained the same
#38

push

github

web-flow
Release 0.0.1 (#58)

* Docs: 초기 배포를 위한 docs 추가 (#21)

* Docs: README 추가

* Chore: gitignore에 maven pushing에 사용할 설정 파일 추가

* Deploy: Coveralls 추가, CI 추가 (#22)

* Release 0.0.1

* Deploy: 배포시 Readme 버전 설정 추가 (#25)

* Deploy: 베포시 readme 버전 설정

* Fix: 테스트로 추가했던 dev 브런치 삭제

* Docs: javadocs 관련 의존성 추가 및 배포된 maven repository url 추가 (#30)

* Docs: javaDocs 만들기 위한 추가 의존성 추가

* Docs: Maven Central url README에 추가

* Fix: slf4j-api 의존성의 implementation으로 변경 (#33)

* Feat: 로그 info 메세지 변경 (#34)

* Feat: 로깅 메세지 변경

* Feat: 로그 info 메세지 변경(dto 클래스명 SimpleName에서 패키지 포함으로 변경)

* Feat: Excel, ExcelColumn 어노테이션 정합성 예외 처리 (#35)

* Feat: SystemValues 클레스에 ExcelColumn에 허용되는 타입들 추가

* Feat: Excel, ExcelColumn 어노테이션 관련 적합성에 대한 예외 처리 추가

* Fix: ExcelColumnAnnotationProcessor에 AutoService import

* Fix: Supported source version에 대한 경고 제거 (#36)

* Fix: AutoService 제거

- 의존성 삭제
- 프로세서에 어노테이션 제거

* Fix: 어노테이션 프로세서 SourceVersion을 latestSupported로 변경

* Fix: poi 의존성을 implementation에서 api로 변경 (#38)

* Fix: 에러 메세지 수정(STY_CU_003_B, STG_CT_001_B,STG_ID_002_B 테스트 사항) (#46)

* Fix: 에러 메세지 수정(STY_CU_003_B, STG_CT_001_B,STG_ID_002_B 테스트 사항)

* Style: comment, 및 포멧 수정

* Fix: compile 옵션 변경, toolchain java 버전 변경 (#47)

* Chore: gradle 버전 변경 gradle-8.5 -> gradle-8.10

* Chore: java compile source, target 8 에서 release 8로 변경

- toolchain을 23으로 변경

* Refactor: ExcelExporter의 validate 메서드 추가(data size, sheet Strategy에 따른) (#48)

- validate 오버라이딩으로 생성자의 setSheetStrategy 메서드호출과 initialize 호출 시점 변경,

* Refactor: VerticalAlignment의 default 값을 CENTER로 설정 (#49)

* Refactor: poi 라이브러리의 클래스명과 겹치는 클래스명 변경 (#50)

* Rename: IndexedColor 관련 클래스명 rename

- IndexedColors.java ->  ColorPalette.java
- IndexedExcelColor.java -> PaletteExcelColor.java

* Rename: CellType.java -> ColumnDataType.java으로 클래스명 변경

* Rename: Alignment 관련 Enum 클래스 'Excel' 접두사 추가

* Rename: BorderStyle.java -> ExcelBorderStyle.java로 변경

* Refactor: Excel, ExcelColumn 어노테이션 프로세서 추가 구현 (#52)

* Refactor: ExcelAnnotationProcessor와 ExcelColumnAn... (continued)

105 of 168 new or added lines in 16 files covered. (62.5%)

29 existing lines in 7 files now uncovered.

534 of 645 relevant lines covered (82.79%)

0.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/main/java/io/github/hee9841/excel/strategy/CellTypeStrategy.java
1
package io.github.hee9841.excel.strategy;
2

3
import io.github.hee9841.excel.meta.ColumnDataType;
4

5
/**
6
 * Strategy enum that determines how cell types are assigned in Excel sheets.
7
 * <p>
8
 * This enum defines strategies for determining the data type and format of cells
9
 * when exporting data to Excel. It works in conjunction with the
10
 * {@link ColumnDataType} enum to control how different Java types
11
 * are represented in Excel.
12
 * </p>
13
 * The available strategies are:
14
 * <ul>
15
 *   <li>{@code NONE}: Cell types are not applied.</li>
16
 *   <li>{@code AUTO}: Cell types are automatically determined based on the Java type of each field.</li>
17
 * </ul>
18
 * <p>
19
 * This strategy is typically configured at the class level using the
20
 * {@link io.github.hee9841.excel.annotation.Excel#cellTypeStrategy()} annotation parameter and
21
 * can be overridden at the column level using
22
 * {@link io.github.hee9841.excel.annotation.ExcelColumn#columnCellType()}.
23
 * </p>
24
 * When used with {@link DataFormatStrategy#AUTO_BY_CELL_TYPE}, it also affects how data formatting
25
 * is applied to cells.
26
 *
27
 * @see io.github.hee9841.excel.annotation.Excel#cellTypeStrategy()
28
 * @see io.github.hee9841.excel.annotation.ExcelColumn#columnCellType()
29
 * @see ColumnDataType
30
 * @see io.github.hee9841.excel.meta.ColumnInfoMapper
31
 * @see DataFormatStrategy
32
 */
33
public enum CellTypeStrategy {
1✔
34
    /**
35
     * Strategy that does not apply any cell type.
36
     * <p>
37
     * With this strategy, you can explicitly specify the cell type for each column
38
     * using the {@link io.github.hee9841.excel.annotation.ExcelColumn#columnCellType()} parameter
39
     * or if not specified, cell type will be {@link ColumnDataType#_NONE}.
40
     * </p>
41
     */
42
    NONE,
1✔
43

44
    /**
45
     * Strategy that automatically determines cell types based on field types.
46
     * <p>
47
     * With this strategy, the cell type is automatically determined based on the Java type
48
     * of each field. This simplifies configuration but may not always choose the optimal
49
     * representation, especially for complex types or when specific formatting is required.
50
     * </p>
51
     * <p>
52
     * The automatic cell type determination is performed by the
53
     * {@link io.github.hee9841.excel.meta.ColumnInfoMapper} class.
54
     * If you want to specify the cell type for a specific column, you can use the
55
     * {@link io.github.hee9841.excel.annotation.ExcelColumn#columnCellType()} parameter.
56
     * </p>
57
     */
58
    AUTO,
1✔
59
    ;
60

61
    public boolean isAuto() {
62
        return this == AUTO;
1✔
63
    }
64

65
    public boolean isNone() {
UNCOV
66
        return this == NONE;
×
67
    }
68
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc