Woolpack API

woolpack.ee
クラス ActionBuilder

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

public class ActionBuilder
extends java.lang.Object

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

作成者:
nakamura

フィールドの概要
static EL DEFAULT_FORWARD_COMPONENT_EL_EL
          遷移先で使用するコンポーネントの取得先のELのデフォルト値です。
static EL DEFAULT_RETURN_EL
          返却値の取得先のデフォルト値です。
 
コンストラクタの概要
ActionBuilder(ActionInvoker actionDefs, Fn<GettingEL,Fn<? super EEContext,java.lang.Void>> autoUpdaterFactory)
           
ActionBuilder(ActionInvoker actionDefs, Fn<GettingEL,Fn<? super EEContext,java.lang.Void>> autoUpdaterFactory, EL forwardComponentELEL, EL returnEL)
           
ActionBuilder(ActionInvoker actionDefs, java.lang.Iterable<java.lang.String> attrNames)
           
 
メソッドの概要
 ActionInvoker getActionDefs()
           
 Fn<EEContext,java.lang.Void> getActionExpression()
          アクションを実行し実行結果をgetReturnEL()の位置に設定するFnを返します。
 Fn<EEContext,java.lang.Void> getAutoUpdateExpression()
          コンポーネントの取得先をアクションの実行結果から取得し、 属性値をプロパティ名としてコンポーネントから値を取得し DOM ノードに自動設定するFnを返します。
 Fn<GettingEL,Fn<? super EEContext,java.lang.Void>> getAutoUpdaterFactory()
           
 EL getForwardComponentELEL()
           
 EL getReturnEL()
           
 void setActionDefs(ActionInvoker actionDefs)
           
 void setAutoUpdaterFactory(Fn<GettingEL,Fn<? super EEContext,java.lang.Void>> 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,Fn<? super EEContext,java.lang.Void>> autoUpdaterFactory,
                     EL forwardComponentELEL,
                     EL returnEL)
パラメータ:
actionDefs - アクション定義の一覧と遷移先定義の一覧の集合。
autoUpdaterFactory - XMLを自動加工するFnのファクトリ。
forwardComponentELEL - 遷移先で使用するコンポーネントの設定先のELへの参照。
returnEL - 返却値の設定先への参照。

ActionBuilder

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

ActionBuilder

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

getActionExpression

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

戻り値:
アクションを実行するFn

getAutoUpdateExpression

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

戻り値:
アクションの実行結果を 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,Fn<? super EEContext,java.lang.Void>> getAutoUpdaterFactory()

setAutoUpdaterFactory

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

Woolpack API

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