woolpack.el.convert
クラス SimpleConverter
java.lang.Object
woolpack.el.convert.SimpleConverter
- すべての実装されたインタフェース:
- Convertable
public class SimpleConverter
- extends java.lang.Object
- implements Convertable
単純型を変換するConvertable。
- 作成者:
- nakamura
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleConverter
public SimpleConverter(java.text.NumberFormat numberFormat,
java.text.DateFormat dateFormat,
BooleanFormat booleanFormat)
- コンストラクタ。
- パラメータ:
numberFormat - 数値フォーマット。dateFormat - 日付フォーマット。booleanFormat - 真偽値フォーマット。
- 例外:
java.lang.NullPointerException - 引数のいずれかが null の場合。
convert
public java.lang.Object convert(java.lang.Object beforeValue,
java.lang.Class toType,
java.lang.String propertyName)
- インタフェース
Convertable の記述:
- 変換する。
- 定義:
- インタフェース
Convertable 内の convert
- パラメータ:
beforeValue - 変換前のオブジェクト。toType - 変換先の型。実装ではこのパラメータが動作に反映されない可能性がある。propertyName - 変換元のプロパティ名。
- 戻り値:
- 変換後のオブジェクト。
getBooleanFormat
public BooleanFormat getBooleanFormat()
getDateFormat
public java.text.DateFormat getDateFormat()
getNumberFormat
public java.text.NumberFormat getNumberFormat()
Copyright (C) 2006 Takahiro Nakamura. All rights reserved.