jp.morpho.webapp.servlet.jsp.tagext.resource
クラス ResourceTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--jp.morpho.webapp.servlet.jsp.tagext.BaseTag
                    |
                    +--jp.morpho.webapp.servlet.jsp.tagext.resource.ResourceTag
すべての実装インタフェース:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
直系の既知のサブクラス:
FieldNameTag

public class ResourceTag
extends BaseTag

指定されたキーのリソースを取得します。

作成者:
Kenichi Fukuda
関連項目:
直列化された形式

フィールドの概要
 
クラス javax.servlet.jsp.tagext.BodyTagSupport から継承したフィールド
bodyContent
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したフィールド
id, pageContext
 
インタフェース javax.servlet.jsp.tagext.BodyTag から継承したフィールド
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したフィールド
EVAL_BODY_AGAIN
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したフィールド
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
コンストラクタの概要
ResourceTag()
           ResourceTag を作成します。
 
メソッドの概要
 int doStartTag()
           開始タグの処理です。
 java.lang.Object[] getArguments()
           arguments 属性を返します。
 java.lang.String getKey()
           key 属性を返します。
 java.util.Locale getLocale()
           locale 属性を返します。
protected  java.lang.String getResource(jp.morpho.webapp.resource.MessageResourceManager mrm, java.util.Locale locale)
           リソースバンドルを検索します。
 void setArguments(java.lang.Object[] arguments)
           arguments 属性を設定します。
 void setKey(java.lang.String key)
           key 属性を設定します。
 void setLocale(java.util.Locale locale)
           locale 属性を設定します。
 
クラス jp.morpho.webapp.servlet.jsp.tagext.BaseTag から継承したメソッド
doAfterBody, doEndTag, getActionMappingManager, getAttributeMap, getFrameworkContext, getMessageResourceManager, getTagManager, isBodyExists
 
クラス javax.servlet.jsp.tagext.BodyTagSupport から継承したメソッド
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したメソッド
getParent, setPageContext, setParent
 

コンストラクタの詳細

ResourceTag

public ResourceTag()

ResourceTag を作成します。

メソッドの詳細

getKey

public java.lang.String getKey()

key 属性を返します。

戻り値:
key 属性

setKey

public void setKey(java.lang.String key)

key 属性を設定します。

パラメータ:
key - key 属性

getArguments

public java.lang.Object[] getArguments()

arguments 属性を返します。

戻り値:
arguments 属性

setArguments

public void setArguments(java.lang.Object[] arguments)

arguments 属性を設定します。

パラメータ:
arguments - arguments 属性

getLocale

public java.util.Locale getLocale()

locale 属性を返します。

戻り値:
locale 属性

setLocale

public void setLocale(java.util.Locale locale)

locale 属性を設定します。

パラメータ:
locale - locale 属性

getResource

protected java.lang.String getResource(jp.morpho.webapp.resource.MessageResourceManager mrm,
                                       java.util.Locale locale)

リソースバンドルを検索します。 リソースの種類によっては、検索方法を変更したい場合があります。 そのようなリソースはすべて、ResourceTag クラスのサブクラス化によって実装できます。

パラメータ:
mrm - メッセージ リソース マネージャ
locale - リソースバンドルが必要なロケール
戻り値:
リソース

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException

開始タグの処理です。

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の doStartTag
オーバーライド:
クラス javax.servlet.jsp.tagext.BodyTagSupport 内の doStartTag
戻り値:
EVAL_BODY_BUFFERED
javax.servlet.jsp.JspException
関連項目:
Tag.doStartTag()