jp.terasoluna.fw.file.dao.standard
クラス IntColumnParser
java.lang.Object
jp.terasoluna.fw.file.dao.standard.IntColumnParser
- すべての実装されたインタフェース:
- ColumnParser
public class IntColumnParser
- extends Object
- implements ColumnParser
整数数値文字列のためのカラムパーサークラス。
指定された文字列をパースし、int型に変換する。 変換結果をファイル行オブジェクトのint型の属性に値を格納する。
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntColumnParser
public IntColumnParser()
parse
public void parse(String column,
Object t,
Method method,
String columnFormat)
throws NumberFormatException,
IllegalArgumentException,
IllegalAccessException,
InvocationTargetException
- 指定された文字列をパースし、int型に変換する。変換結果をファイル行オブジェクトに格納する。
- 定義:
- インタフェース
ColumnParser
内の parse
- パラメータ:
column
- カラムの文字列t
- ファイル行オブジェクトmethod
- カラムの文字列をファイル行オブジェクトに格納するメソッドcolumnFormat
- パースする際のフォーマット文字列
- 例外:
IllegalArgumentException
- フォーマット文字列がフォーマットとして不正であるとき
NumberFormatException
- 入力文字列が整数以外の場合。
IllegalAccessException
- ファイル行オブジェクトへの設定が失敗したとき
InvocationTargetException
- ファイル行オブジェクトのメソッドが例外をスローしたとき
Copyright © 2011. All Rights Reserved.