org.apache.struts.tiles
クラス ComponentContext

java.lang.Object
  拡張org.apache.struts.tiles.ComponentContext
すべての実装インタフェース:
java.io.Serializable

public class ComponentContext
extends java.lang.Object
implements java.io.Serializable

Component context.

関連項目:
直列化された形式

フィールドの概要
private  java.util.Map attributes
          Component attributes.
 
コンストラクタの概要
ComponentContext()
          Constructor.
ComponentContext(java.util.Map attributes)
          Constructor.
 
メソッドの概要
 void addAll(java.util.Map newAttributes)
          Add all attributes to this context.
 void addMissing(java.util.Map defaultAttributes)
          Add all missing attributes to this context.
 java.lang.Object findAttribute(java.lang.String beanName, javax.servlet.jsp.PageContext pageContext)
          Find object in one of the contexts.
 java.lang.Object getAttribute(java.lang.String name)
          Get an attribute from context.
 java.lang.Object getAttribute(java.lang.String beanName, int scope, javax.servlet.jsp.PageContext pageContext)
          Get object from requested context.
 java.util.Iterator getAttributeNames()
          Get names of all attributes.
static ComponentContext getContext(javax.servlet.ServletRequest request)
          Get component context from request.
 void putAttribute(java.lang.String name, java.lang.Object value)
          Put a new attribute to context.
static void setContext(ComponentContext context, javax.servlet.ServletRequest request)
          Store component context into request.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

attributes

private java.util.Map attributes
Component attributes.

コンストラクタの詳細

ComponentContext

public ComponentContext()
Constructor.


ComponentContext

public ComponentContext(java.util.Map attributes)
Constructor. Create a context and set specified attributes.

パラメータ:
attributes - Attributes to initialize context.
メソッドの詳細

addAll

public void addAll(java.util.Map newAttributes)
Add all attributes to this context. Copies all of the mappings from the specified attribute map to this context. New attribute mappings will replace any mappings that this context had for any of the keys currently in the specified attribute map.

パラメータ:
newAttributes - Attributes to add.

addMissing

public void addMissing(java.util.Map defaultAttributes)
Add all missing attributes to this context. Copies all of the mappings from the specified attributes map to this context. New attribute mappings will be added only if they don't already exist in this context.

パラメータ:
defaultAttributes - Attributes to add.

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Get an attribute from context.

パラメータ:
name - Name of the attribute.
戻り値:
<{Object}>

getAttributeNames

public java.util.Iterator getAttributeNames()
Get names of all attributes.

戻り値:
<{Object}>

putAttribute

public void putAttribute(java.lang.String name,
                         java.lang.Object value)
Put a new attribute to context.

パラメータ:
name - Name of the attribute.
value - Value of the attribute.

findAttribute

public java.lang.Object findAttribute(java.lang.String beanName,
                                      javax.servlet.jsp.PageContext pageContext)
Find object in one of the contexts. Order : component then pageContext.findAttribute()

パラメータ:
beanName - Name of the bean to find.
pageContext - Page context.
戻り値:
Requested bean or null if not found.

getAttribute

public java.lang.Object getAttribute(java.lang.String beanName,
                                     int scope,
                                     javax.servlet.jsp.PageContext pageContext)
Get object from requested context. Context can be 'component'.

パラメータ:
beanName - Name of the bean to find.
scope - Search scope (see PageContext).
pageContext - Page context.
戻り値:
requested bean or null if not found.

getContext

public static ComponentContext getContext(javax.servlet.ServletRequest request)
Get component context from request.

パラメータ:
request - ServletRequest.
戻り値:
ComponentContext

setContext

public static void setContext(ComponentContext context,
                              javax.servlet.ServletRequest request)
Store component context into request.

パラメータ:
context - ComponentContext to store.
request - Request to store ComponentContext.


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation