public class URICellConverterFactory.URICellConverter extends BaseCellConverter<URI>
configuration, defaultValue, field, formulaHandler, horizontalAlignment, indent, shrinktToFit, textFormatter, trimmed, verticalAlignment, wrapText| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected boolean |
isEmptyCell(String formattedValue,
org.apache.poi.ss.usermodel.Cell cell)
セルの値が空かどうか判定します。
|
protected URI |
parseCell(org.apache.poi.ss.usermodel.Cell evaluatedCell,
String formattedValue)
セルをJavaのオブジェクト型に変換します。
|
protected void |
setupCell(org.apache.poi.ss.usermodel.Cell cell,
Optional<URI> cellValue)
書き込み時のセルに値と書式を設定します。
|
format, getConfiguration, getDefaultValue, getField, getHorizontalAlignment, getIndent, getTextFormatter, getVerticalAlignment, isEmptyValue, isShrinktToFit, isTrimmed, isWrapText, newTypeBindExceptionOnParse, newTypeBindExceptionOnParse, setDefaultValue, setFormulaHandler, setHorizontalAlignment, setIndent, setShrinktToFit, setTextFormatter, setTrimmed, setVerticalAlignment, setWrapText, toCell, toObjectprotected URI parseCell(org.apache.poi.ss.usermodel.Cell evaluatedCell, String formattedValue) throws TypeBindException
BaseCellConverterparseCell クラス内 BaseCellConverter<URI>evaluatedCell - 数式を評価済みのセルformattedValue - フォーマット済みのセルの値。トリミングなど適用済み。TypeBindException - 変換に失敗した場合protected boolean isEmptyCell(String formattedValue, org.apache.poi.ss.usermodel.Cell cell)
BaseCellConverter読み込み時のセルの値をJavaオブジェクトにマッピングする際に呼ばれます。
通常は、formattedValue.isEmpty() で判定しますが、
ハイパーリンクのようにマッピング対象の値がセルの値だけではない場合は、
オーバライドして判定方法を変更します。
isEmptyCell クラス内 BaseCellConverter<URI>formattedValue - フォーマットしたセルの値cell - 評価対象のセルprotected void setupCell(org.apache.poi.ss.usermodel.Cell cell,
Optional<URI> cellValue)
throws TypeBindException
BaseCellConvertersetupCell クラス内 BaseCellConverter<URI>cell - 設定対象のセルcellValue - 設定対象の値。TypeBindException - 変換に失敗した場合Copyright © 2025 mygreen. All rights reserved.