|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectwoolpack.el.convert.DelegationIfNecessityConverter
public class DelegationIfNecessityConverter
変換前の値が null である、または変換前の値の型が変換後の型と等しい、または変換後の型がObjectまたは null
の場合は変換前の値を返し、それ以外の場合は委譲するConvertable。
| コンストラクタの概要 | |
|---|---|
DelegationIfNecessityConverter(Convertable convertable)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
java.lang.Object |
convert(java.lang.Object beforeValue,
java.lang.Class toType,
java.lang.String propertyName)
変換する。 |
Convertable |
getConvertable()
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public DelegationIfNecessityConverter(Convertable convertable)
convertable - 委譲先。
java.lang.NullPointerException - 引数が null の場合。| メソッドの詳細 |
|---|
public java.lang.Object convert(java.lang.Object beforeValue,
java.lang.Class toType,
java.lang.String propertyName)
Convertable の記述:
Convertable 内の convertbeforeValue - 変換前のオブジェクト。toType - 変換先の型。実装ではこのパラメータが動作に反映されない可能性がある。propertyName - 変換元のプロパティ名。
public Convertable getConvertable()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||