woolpack.el.convert
クラス FormatConverter

java.lang.Object
  上位を拡張 woolpack.el.convert.FormatConverter
すべての実装されたインタフェース:
Convertable

public class FormatConverter
extends java.lang.Object
implements Convertable

Format.format(java.lang.Object)を使用して 変換するConvertable。 適用しているパターン:Adapter。

作成者:
nakamura

コンストラクタの概要
FormatConverter(java.text.Format format)
          コンストラクタ。
FormatConverter(FormatFactory factory)
          コンストラクタ。
 
メソッドの概要
 java.lang.Object convert(java.lang.Object beforeValue, java.lang.Class toType, java.lang.String propertyName)
          変換する。
 FormatFactory getFactory()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FormatConverter

public FormatConverter(FormatFactory factory)
コンストラクタ。

パラメータ:
factory - フォーマットのファクトリ。
例外:
java.lang.NullPointerException - 引数が null の場合。

FormatConverter

public FormatConverter(java.text.Format format)
コンストラクタ。 format をFormat.clone()で複製して利用する。

パラメータ:
format - フォーマット。
例外:
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 - 変換元のプロパティ名。
戻り値:
変換後のオブジェクト。

getFactory

public FormatFactory getFactory()


Copyright (C) 2006 Takahiro Nakamura. All rights reserved.