Woolpack API

woolpack.ee
クラス ActionBuilder

java.lang.Object
  上位を拡張 woolpack.ee.ActionBuilder

public class ActionBuilder
extends java.lang.Object

アクションを実行する関数と アクションの実行結果を DOM ノードに自動生成する関数のビルダです。
適用しているデザインパターン:Builder。

作成者:
nakamura

フィールドの概要
static EL DEFAULT_FORWARD_COMPONENT_EL_EL
          遷移先で使用するコンポーネントの取得先のELのデフォルト値です。
static EL DEFAULT_RETURN_EL
          返却値の取得先のデフォルト値です。
 
コンストラクタの概要
ActionBuilder(ActionInvoker actionDefs, Fn<GettingEL,? extends Fn<? super EEContext,java.lang.Void,? extends java.lang.RuntimeException>,? extends java.lang.RuntimeException> autoUpdaterFactory)
           
ActionBuilder(ActionInvoker actionDefs, Fn<GettingEL,? extends Fn<? super EEContext,java.lang.Void,? extends java.lang.RuntimeException>,? extends java.lang.RuntimeException> autoUpdaterFactory, EL forwardComponentELEL, EL returnEL)
           
ActionBuilder(ActionInvoker actionDefs, java.lang.Iterable<java.lang.String> attrNames)
           
 
メソッドの概要
 ActionInvoker getActionDefs()
           
 Fn<EEContext,java.lang.Void,java.lang.RuntimeException> getActionExpression()
          アクションを実行し実行結果をgetReturnEL()の位置に設定する関数を生成します。
 Fn<EEContext,java.lang.Void,java.lang.RuntimeException> getAutoUpdateExpression()
          コンポーネントの取得先をアクションの実行結果から取得し、 属性値をプロパティ名としてコンポーネントから値を取得し DOM ノードに自動設定する関数を生成します。
 Fn<GettingEL,? extends Fn<? super EEContext,java.lang.Void,? extends java.lang.RuntimeException>,? extends java.lang.RuntimeException> getAutoUpdaterFactory()
           
 EL getForwardComponentELEL()
           
 EL getReturnEL()
           
 void setActionDefs(ActionInvoker actionDefs)
           
 void setAutoUpdaterFactory(Fn<GettingEL,? extends Fn<? super EEContext,java.lang.Void,? extends java.lang.RuntimeException>,? extends java.lang.RuntimeException> autoUpdaterFactory)
           
 void setForwardComponentELEL(EL forwardComponentELEL)
           
 void setReturnEL(EL returnEL)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_FORWARD_COMPONENT_EL_EL

public static final EL DEFAULT_FORWARD_COMPONENT_EL_EL
遷移先で使用するコンポーネントの取得先のELのデフォルト値です。


DEFAULT_RETURN_EL

public static final EL DEFAULT_RETURN_EL
返却値の取得先のデフォルト値です。

コンストラクタの詳細

ActionBuilder

public ActionBuilder(ActionInvoker actionDefs,
                     Fn<GettingEL,? extends Fn<? super EEContext,java.lang.Void,? extends java.lang.RuntimeException>,? extends java.lang.RuntimeException> autoUpdaterFactory,
                     EL forwardComponentELEL,
                     EL returnEL)
パラメータ:
actionDefs - アクション定義の一覧と遷移先定義の一覧の集合。
autoUpdaterFactory - XMLを自動加工する関数のファクトリ。
forwardComponentELEL - 遷移先で使用するコンポーネントの設定先の関数への参照。
returnEL - 返却値の設定先への参照。

ActionBuilder

public ActionBuilder(ActionInvoker actionDefs,
                     Fn<GettingEL,? extends Fn<? super EEContext,java.lang.Void,? extends java.lang.RuntimeException>,? extends java.lang.RuntimeException> autoUpdaterFactory)
パラメータ:
actionDefs - アクション定義の一覧と遷移先定義の一覧の集合。
autoUpdaterFactory - XMLを自動加工する関数のファクトリ。

ActionBuilder

public ActionBuilder(ActionInvoker actionDefs,
                     java.lang.Iterable<java.lang.String> attrNames)
パラメータ:
actionDefs - アクション定義の一覧と遷移先定義の一覧の集合。
attrNames - 属性名の一覧。本クラスはこの引数の状態を変化させません。
メソッドの詳細

getActionExpression

public Fn<EEContext,java.lang.Void,java.lang.RuntimeException> getActionExpression()
アクションを実行し実行結果をgetReturnEL()の位置に設定する関数を生成します。 アクション実行時にRuntimeExceptionが発生した場合、呼出元に投げます。

戻り値:
関数。

getAutoUpdateExpression

public Fn<EEContext,java.lang.Void,java.lang.RuntimeException> getAutoUpdateExpression()
コンポーネントの取得先をアクションの実行結果から取得し、 属性値をプロパティ名としてコンポーネントから値を取得し DOM ノードに自動設定する関数を生成します。

戻り値:
アクションの実行結果を DOM ノードに自動生成するFn

getActionDefs

public ActionInvoker getActionDefs()

setActionDefs

public void setActionDefs(ActionInvoker actionDefs)

getForwardComponentELEL

public EL getForwardComponentELEL()

setForwardComponentELEL

public void setForwardComponentELEL(EL forwardComponentELEL)

getReturnEL

public EL getReturnEL()

setReturnEL

public void setReturnEL(EL returnEL)

getAutoUpdaterFactory

public Fn<GettingEL,? extends Fn<? super EEContext,java.lang.Void,? extends java.lang.RuntimeException>,? extends java.lang.RuntimeException> getAutoUpdaterFactory()

setAutoUpdaterFactory

public void setAutoUpdaterFactory(Fn<GettingEL,? extends Fn<? super EEContext,java.lang.Void,? extends java.lang.RuntimeException>,? extends java.lang.RuntimeException> autoUpdaterFactory)

Woolpack API

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