Sha256: e6a4da73b2a781fe4661d4432da3209b1cb10cf06886a6e68f955fe8bde0e2db

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

package org.embulk.parser.poi_excel;

import org.embulk.parser.poi_excel.bean.record.RecordType;

public enum PoiExcelColumnValueType {
	/** cell value */
	CELL_VALUE(true, true),
	/** cell formula */
	CELL_FORMULA(true, true),
	/** cell style */
	CELL_STYLE(true, false),
	/** cell font */
	CELL_FONT(true, false),
	/** cell comment */
	CELL_COMMENT(true, false),
	/** cell type */
	CELL_TYPE(true, false),
	/** cell CachedFormulaResultType */
	CELL_CACHED_TYPE(true, false),
	/** sheet name */
	SHEET_NAME(false, false),
	/** row number (1 origin) */
	ROW_NUMBER(false, false) {
		@Override
		public boolean useCell(RecordType recordType) {
			if (recordType == RecordType.COLUMN) {
				return true;
			}
			return super.useCell(recordType);
		}
	},
	/** column number (1 origin) */
	COLUMN_NUMBER(true, false) {
		@Override
		public boolean useCell(RecordType recordType) {
			if (recordType == RecordType.ROW) {
				return true;
			}
			return super.useCell(recordType);
		}
	},
	/** constant */
	CONSTANT(false, false);

	private final boolean useCell;
	private final boolean nextIndex;

	PoiExcelColumnValueType(boolean useCell, boolean nextIndex) {
		this.useCell = useCell;
		this.nextIndex = nextIndex;
	}

	public boolean useCell(RecordType recordType) {
		return useCell;
	}

	public boolean nextIndex() {
		return nextIndex;
	}
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embulk-parser-poi_excel-0.1.12 src/main/java/org/embulk/parser/poi_excel/PoiExcelColumnValueType.java