RESULT - 処理結果の型public abstract class TagParser<RESULT> extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
PARAM_DELIM
パラメータ区切り文字
|
static String |
TAG_PARAM_PREFIX
パラメータ定義の開始文字
|
static String |
TAG_PARAM_SUFFIX
パラメータ定義の終了文字
|
static String |
VALUE_DELIM
キー、値の区切り文字
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
String |
getTag()
対象タグの取得
|
boolean |
isParse(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Cell tagCell)
パース処理を行うか否かの判定
|
abstract RESULT |
parse(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Cell tagCell,
Object data)
パース処理
|
void |
setTag(String tag)
対象タグの設定
|
public TagParser(String tag)
tag - 対象タグpublic boolean isParse(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Cell tagCell)
throws ParseException
sheet - 対象シートtagCell - 対象セルParseExceptionpublic abstract RESULT parse(org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Cell tagCell, Object data) throws ParseException
sheet - 対象シートtagCell - タグが定義されたセルdata - BookControllerのparseBook(), parseSheet()メソッド、
SheetParserのparseSheetメソッドで引数を渡した場合に
TagParserまで引き継がれる処理データParseException - パース例外public String getTag()
public void setTag(String tag)
tag - 対象タグCopyright © 2009–2023. All rights reserved.