• 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/ColumnIndexStrategy.java
1
package io.github.hee9841.excel.strategy;
2

3
/**
4
 * Strategy enum that determines how column indices are assigned in Excel sheets.
5
 * <p>
6
 * This enum defines strategies for determining the order and position of columns
7
 * when exporting data to Excel. It controls whether column indices are determined
8
 * automatically based on field declaration order or explicitly defined by the user.
9
 * <p>
10
 * The available strategies are:
11
 * <ul>
12
 *   <li>{@code FIELD_ORDER}: Column indices are assigned based on the order that fields
13
 *       are declared in the class. This is the simplest approach and requires no
14
 *       additional configuration.</li>
15
 *   <li>{@code USER_DEFINED}: Column indices are explicitly defined by the user through
16
 *       the {@link io.github.hee9841.excel.annotation.ExcelColumn#columnIndex()} parameter.
17
 *       This gives precise control over column positioning.</li>
18
 * </ul>
19
 * <p>
20
 * This strategy is typically configured at the class level using the
21
 * {@link io.github.hee9841.excel.annotation.Excel#columnIndexStrategy()} annotation parameter.
22
 *
23
 * @see io.github.hee9841.excel.annotation.Excel#columnIndexStrategy()
24
 * @see io.github.hee9841.excel.annotation.ExcelColumn#columnIndex()
25
 * @see io.github.hee9841.excel.meta.ColumnInfoMapper
26
 */
27
public enum ColumnIndexStrategy {
1✔
28
    /**
29
     * Strategy that assigns column indices based on the order of field declarations.
30
     * <p>
31
     * When this strategy is used, the
32
     * {@link io.github.hee9841.excel.annotation.ExcelColumn#columnIndex()}
33
     * parameter is ignored, and columns appear in the Excel sheet in the same order
34
     * that fields are declared in the Java class.
35
     */
36
    FIELD_ORDER,
1✔
37

38
    /**
39
     * Strategy that assigns column indices based on explicit user definition.
40
     * <p>
41
     * When this strategy is used, the
42
     * {@link io.github.hee9841.excel.annotation.ExcelColumn#columnIndex()}
43
     * parameter must be specified for each column and determines its column index in the Excel
44
     * sheet.
45
     * If two columns have the same index, an exception will be thrown.
46
     */
47
    USER_DEFINED,
1✔
48
    ;
49

50
    public boolean isUserDefined() {
UNCOV
51
        return this == USER_DEFINED;
×
52
    }
53

54
    public boolean isFieldOrder() {
55
        return this == FIELD_ORDER;
1✔
56
    }
57
}
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