nga.servlet.dsp.parser
クラス PropertyValueParser

java.lang.Object
  上位を拡張 nga.servlet.dsp.parser.PropertyValueParser
直系の既知のサブクラス:
PropertyValueParserCollection.BigDecimalPropertyParser, PropertyValueParserCollection.BigIntegerPropertyParser, PropertyValueParserCollection.BooleanPropertyParser, PropertyValueParserCollection.BytePropertyParser, PropertyValueParserCollection.CharactorPropertyParser, PropertyValueParserCollection.DatePropertyParser, PropertyValueParserCollection.DoublePropertyParser, PropertyValueParserCollection.FloatPropertyParser, PropertyValueParserCollection.IntegerPropertyParser, PropertyValueParserCollection.LongPropertyParser, PropertyValueParserCollection.ShortPropertyParser, PropertyValueParserCollection.SqlDatePropertyParser, PropertyValueParserCollection.SqlTimePropertyParser, PropertyValueParserCollection.SqlTimestampPropertyParser, PropertyValueParserCollection.StringPropertyParser, PropertyValueParserCollection.TextConvertibleParser

public abstract class PropertyValueParser
extends Object

文字列からオブジェクトへ変換し,入力値の検証を行なう。

関連項目:
ParameterParser

コンストラクタの概要
PropertyValueParser()
           
 
メソッドの概要
protected  boolean check(long value, int len)
          数値が指定した桁数の範囲内かどうかをチェックする。
protected  boolean checkByteLength(PropertyValue pv)
          バイト長チェックを行なう。
protected  boolean checkCharType(PropertyValue pv)
          文字種チェックを行なう。
protected  boolean checkLength(PropertyValue pv)
          文字列長チェックを行なう。
protected  boolean checkNum(PropertyValue pv)
          数値チェックを行なう。
protected  boolean checkRequired(PropertyValue pv)
          必須入力項目チェックを行なう。
protected  String delC(String val)
          指定された文字列の中からカンマ文字を削除する。
protected  boolean handleNumberFormatException(PropertyValue pv)
          NumberFormatException を処理する。
abstract  boolean parse(PropertyValue propertyValue)
          文字列からオブジェクトへ変換し,入力値の検証を行なう。
protected  boolean toDate(PropertyValue pv, String defaultFormat)
          日付変換を行なう。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PropertyValueParser

public PropertyValueParser()
メソッドの詳細

parse

public abstract boolean parse(PropertyValue propertyValue)
文字列からオブジェクトへ変換し,入力値の検証を行なう。

パラメータ:
propertyValue - 処理対象情報。
戻り値:
処理が正常に終了したら true を返す。失敗した場合には false を返す。

checkRequired

protected boolean checkRequired(PropertyValue pv)
必須入力項目チェックを行なう。

パラメータ:
pv - 処理対象情報。
戻り値:
エラーがなければ true。エラーがある場合は false。

delC

protected String delC(String val)
指定された文字列の中からカンマ文字を削除する。

パラメータ:
val - 対象文字列。

check

protected boolean check(long value,
                        int len)
数値が指定した桁数の範囲内かどうかをチェックする。

パラメータ:
value - チェック対象の値。
len - 桁数。
戻り値:
チェック OK ならばtrue。NG の場合は false。

checkNum

protected boolean checkNum(PropertyValue pv)
数値チェックを行なう。

パラメータ:
pv - 処理対象情報。
戻り値:
エラーがなければ true。エラーがある場合は false。

handleNumberFormatException

protected boolean handleNumberFormatException(PropertyValue pv)
NumberFormatException を処理する。

パラメータ:
pv - 処理対象情報。
戻り値:
false。

toDate

protected boolean toDate(PropertyValue pv,
                         String defaultFormat)
日付変換を行なう。

パラメータ:
pv - 処理対象情報。
戻り値:
変換出来た場合は true。変換できなかった場合は false。

checkLength

protected boolean checkLength(PropertyValue pv)
文字列長チェックを行なう。

パラメータ:
pv - 処理対象情報。
戻り値:
エラーがなければ true。エラーがある場合は false。

checkByteLength

protected boolean checkByteLength(PropertyValue pv)
バイト長チェックを行なう。

パラメータ:
pv - 処理対象情報。
戻り値:
エラーがなければ true。エラーがある場合は false。

checkCharType

protected boolean checkCharType(PropertyValue pv)
文字種チェックを行なう。

パラメータ:
pv - 処理対象情報。
戻り値:
エラーがなければ true。エラーがある場合は false。