net.sourceforge.scopes
Interface Context

All Known Implementing Classes:
ApplicationScopeManager.ServletContext, ClickScopeManager.ClickContext, ContextImpl

public interface Context

It represents a context, i.e. an attribute collector, just like a ServletRequest or a ServletContext.


Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns a stored attribute.
 java.util.Set<java.lang.String> getAttributeNames()
          Returns a set of attribute names.
 void removeAttribute(java.lang.String name)
          Removes an attribute.
 void setAttribute(java.lang.String name, java.lang.Object object)
          Sets an attribute.
 

Method Detail

getAttribute

java.lang.Object getAttribute(java.lang.String name)
Returns a stored attribute.

Parameters:
name - The name of the attribute.
Returns:
The needed attribute.

getAttributeNames

java.util.Set<java.lang.String> getAttributeNames()
Returns a set of attribute names.

Returns:
The set of attribute names.

setAttribute

void setAttribute(java.lang.String name,
                  java.lang.Object object)
Sets an attribute.

Parameters:
name - The name of the attribute.
object - The attribute.

removeAttribute

void removeAttribute(java.lang.String name)
Removes an attribute.

Parameters:
name - The attribute to remove.