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型の属性に値を格納する。


コンストラクタの概要
IntColumnParser()
           
 
メソッドの概要
 void parse(String column, Object t, Method method, String columnFormat)
          指定された文字列をパースし、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 © 2012. All Rights Reserved.