|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.extension.dxo.command.impl.AbstractDxoCommand
Dxoのメソッドに応じた変換を行うコマンドの抽象クラスです。
| 入れ子クラスの概要 | |
class |
AbstractDxoCommand.ArrayToArrayConversionHelper
配列から配列へ変換するヘルパです。 |
class |
AbstractDxoCommand.ArrayToListConversionHelper
配列から Listへ変換するヘルパです。 |
static interface |
AbstractDxoCommand.ConversionHelper
メソッドのシグネチャに応じて変換を行うヘルパのインターフェースです。 |
class |
AbstractDxoCommand.ListToArrayConversionHelper
Listから配列へ変換するヘルパです。 |
class |
AbstractDxoCommand.ListToListConversionHelper
ListからListへ変換するヘルパです。 |
class |
AbstractDxoCommand.ScalarConversionHelper
スカラ値 (配列でも Listでもない型) を変換するヘルパです。 |
| フィールドの概要 | |
protected AnnotationReader |
annotationReader
AnnotationReaderのファクトリです。 |
protected AbstractDxoCommand.ConversionHelper |
conversionHelper
変換のヘルパです。 |
protected ConverterFactory |
converterFactory
Converterのファクトリです。 |
protected java.lang.Class |
dxoClass
Dxoのインターフェースまたはクラス |
protected java.lang.reflect.Method |
method
Dxoのメソッド |
| コンストラクタの概要 | |
AbstractDxoCommand(java.lang.Class dxoClass,
java.lang.reflect.Method method,
ConverterFactory converterFactory,
AnnotationReader annotationReader)
インスタンスを構築します。 |
|
| メソッドの概要 | |
protected void |
assertDest(java.lang.Object dest)
変換先となる引数がnullの場合に SIllegalArgumentExceptionをスローします。 |
protected void |
assertSource(java.lang.Object source)
変換元となる引数がnullの場合に SIllegalArgumentExceptionをスローします。 |
protected abstract java.lang.Object |
convertScalar(java.lang.Object source)
単一のオブジェクトを変換して返します。 |
protected abstract void |
convertScalar(java.lang.Object source,
java.lang.Object dest)
単一のオブジェクト srcをdestに変換します。 |
protected java.lang.Object[] |
createArray(int length)
変換先の要素型の配列を作成して返します。 |
protected ConversionContext |
createContext(java.lang.Object source)
変換コンテキストを作成して返します。 |
java.lang.Object |
execute(java.lang.Object[] args)
Dxoのメソッドに応じた変換を行います。 |
protected AbstractDxoCommand.ConversionHelper |
getConversionHelper(java.lang.reflect.Method method)
変換ヘルパを作成して返します。 |
protected abstract java.lang.Class |
getDestElementType()
変換先の要素の型を返します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
protected java.lang.Class dxoClass
protected java.lang.reflect.Method method
protected ConverterFactory converterFactory
Converterのファクトリです。
protected AnnotationReader annotationReader
AnnotationReaderのファクトリです。
protected AbstractDxoCommand.ConversionHelper conversionHelper
| コンストラクタの詳細 |
public AbstractDxoCommand(java.lang.Class dxoClass,
java.lang.reflect.Method method,
ConverterFactory converterFactory,
AnnotationReader annotationReader)
dxoClass - Dxoのインターフェースまたはクラスmethod - DxoのメソッドconverterFactory - ConverterのファクトリannotationReader - AnnotationReaderのファクトリ| メソッドの詳細 |
public java.lang.Object execute(java.lang.Object[] args)
DxoCommand の記述: Dxoのメソッドは次の形式のいずれかになります。
Dest convert(Src src)void convert(Src src, Dest dest)
DxoCommand 内の executeargs - Dxoメソッドの引数の配列
protected abstract java.lang.Object convertScalar(java.lang.Object source)
source - 変換元のオブジェクト
protected abstract void convertScalar(java.lang.Object source,
java.lang.Object dest)
srcをdestに変換します。
source - 変換元のオブジェクトdest - 変換先のオブジェクトprotected abstract java.lang.Class getDestElementType()
protected java.lang.Object[] createArray(int length)
length - 配列の長さ
protected ConversionContext createContext(java.lang.Object source)
source - 変換元のオブジェクト
protected AbstractDxoCommand.ConversionHelper getConversionHelper(java.lang.reflect.Method method)
method - Dxoのメソッド
protected void assertSource(java.lang.Object source)
throws SIllegalArgumentException
SIllegalArgumentExceptionをスローします。
source - 変換元となる引数
SIllegalArgumentException - 引数がnullの場合
protected void assertDest(java.lang.Object dest)
throws SIllegalArgumentException
SIllegalArgumentExceptionをスローします。
dest - 変換先となる引数
SIllegalArgumentException - 引数がnullの場合
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||