|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface State
It represents a state of a web application. It is in fact a set of contexts,
where each context has its own attributes, that represents a part of the
state.
The concept of a state has been used for this class, because, in fact, it
represents a state of a web application in a certain moment.
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String attributeName)
Returns an attribute, searching in all contexts, until it finds one. |
java.lang.Object |
getAttribute(java.lang.String contextName,
java.lang.String attributeName)
Returns an attribute in a context. |
java.util.Set<java.lang.String> |
getAttributeNames()
Returns all attribute names in all contexts. |
java.util.Set<java.lang.String> |
getAttributeNames(java.lang.String contextName)
Returns the attribute names for a particular context. |
Context |
getContext(java.lang.String contextName)
Returns a context object. |
java.util.Set<java.lang.String> |
getContextNames()
Returns the names of the used contexts. |
void |
removeAttribute(java.lang.String attributeName)
Removes an attribute in every context. |
void |
removeAttribute(java.lang.String contextName,
java.lang.String attributeName)
Removes an attribute from a context. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object object)
Sets an attribute, searching if it exists. |
void |
setAttribute(java.lang.String contextName,
java.lang.String attributeName,
java.lang.Object object)
|
Method Detail |
---|
java.util.Set<java.lang.String> getContextNames()
Context getContext(java.lang.String contextName)
contextName
- The context name.
java.lang.Object getAttribute(java.lang.String contextName, java.lang.String attributeName)
contextName
- The name of the context.attributeName
- The name of the attribute.
java.util.Set<java.lang.String> getAttributeNames(java.lang.String contextName)
contextName
- The name of the context.
void setAttribute(java.lang.String contextName, java.lang.String attributeName, java.lang.Object object)
void removeAttribute(java.lang.String contextName, java.lang.String attributeName)
contextName
- The name of the context.attributeName
- The attribute to remove.java.lang.Object getAttribute(java.lang.String attributeName)
attributeName
- The attribute name to search.
java.util.Set<java.lang.String> getAttributeNames()
void setAttribute(java.lang.String attributeName, java.lang.Object object)
attributeName
- The name of the attribute to overwrite.object
- The new attributevoid removeAttribute(java.lang.String attributeName)
attributeName
- The attribute to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |