feat.v1.config
クラス FeatureDeclaration

java.lang.Object
  拡張feat.v1.config.FeatureDeclaration
すべての実装インタフェース:
ConfigElement

public class FeatureDeclaration
extends java.lang.Object
implements ConfigElement

feature設定ファイルのドキュメント要素。


コンストラクタの概要
FeatureDeclaration()
           
 
メソッドの概要
 void addResources(ResourcesDeclaration res)
           
 CommandDeclaration getCommand(java.lang.String commandName)
           
 java.lang.String[] getCommandNames()
           
 java.lang.String getEncoding()
           
 ExceptionDeclaration getExceptionDeclaration(java.lang.Exception ex)
          指定された例外を処理する例外ハンドラの宣言を返す。
 FeatureConfig getFeatureConfig()
           
 ResponseDeclaration getHomeResponse()
           
 java.lang.String getName()
           
 java.lang.String getPackage()
           
 PreProcessDeclaration getPreProcessDeclaration(java.lang.String preProcessName)
           
 java.util.Set getResourceNames()
          リソース名をすべて返す。
 ResponseDeclaration getResponseDeclaration(java.lang.String responseName)
           
 java.util.Iterator getResponses()
           
 java.lang.String getStringResource(java.lang.String name, java.util.Locale locale)
          リソース文字列を返す。
 ViewDeclaration getView(java.lang.String viewName)
           
 void init()
           
 boolean isCreateSession()
           
 void setFeatureConfig(FeatureConfig featureConfig)
           
 void validate()
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FeatureDeclaration

public FeatureDeclaration()
メソッドの詳細

getName

public java.lang.String getName()
定義:
インタフェース ConfigElement 内の getName

getPackage

public java.lang.String getPackage()

getEncoding

public java.lang.String getEncoding()

isCreateSession

public boolean isCreateSession()

getHomeResponse

public ResponseDeclaration getHomeResponse()

getResponses

public java.util.Iterator getResponses()

getResponseDeclaration

public ResponseDeclaration getResponseDeclaration(java.lang.String responseName)

getCommand

public CommandDeclaration getCommand(java.lang.String commandName)

getCommandNames

public java.lang.String[] getCommandNames()

getPreProcessDeclaration

public PreProcessDeclaration getPreProcessDeclaration(java.lang.String preProcessName)

getView

public ViewDeclaration getView(java.lang.String viewName)

getExceptionDeclaration

public ExceptionDeclaration getExceptionDeclaration(java.lang.Exception ex)
指定された例外を処理する例外ハンドラの宣言を返す。 例外ハンドラはcatch文と同様にその例外クラスとサブクラスの例外を処理する。 また、例外を処理する例外ハンドラを見つける順番は設定ファイルに記述された順となる。

パラメータ:
ex -
戻り値:
例外ハンドラの宣言。見つからなかったときはnullを返す

getStringResource

public java.lang.String getStringResource(java.lang.String name,
                                          java.util.Locale locale)
リソース文字列を返す。

パラメータ:
name - リソース名
locale - ロケール。nullでも良い
戻り値:

getResourceNames

public java.util.Set getResourceNames()
リソース名をすべて返す。

戻り値:
ソートされたリソース名の集合。

addResources

public void addResources(ResourcesDeclaration res)

getFeatureConfig

public FeatureConfig getFeatureConfig()
戻り値:
featureConfig を戻します。

setFeatureConfig

public void setFeatureConfig(FeatureConfig featureConfig)
パラメータ:
featureConfig - featureConfig を設定。

init

public void init()
          throws InitializationException
定義:
インタフェース ConfigElement 内の init
例外:
InitializationException

validate

public void validate()
              throws InitializationException
定義:
インタフェース ConfigElement 内の validate
例外:
InitializationException