|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cafesip.jiplet.ScopedVariables
public class ScopedVariables
This is a base class for all scoped-variables. The jiplet container supports scoped variables similar to Java servlets. Scoped variables can be created, retrieved, and deleted by jiplets by calling the setAttribute(), getAttribute(), and removeAttribute() methods. The jiplet container supports the following types of scoped-variables:
| Constructor Summary | |
|---|---|
protected |
ScopedVariables()
A constructor for this class. |
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
This method retrieves a previously stored variable. |
java.util.Enumeration |
getAttributeNames()
Gets a list of all the variables stored in the scope variables. |
void |
removeAttribute(java.lang.String name)
Remove a variable. |
void |
setAttribute(java.lang.String name,
java.lang.Object obj)
This method is used to store a variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ScopedVariables()
| Method Detail |
|---|
public java.lang.Object getAttribute(java.lang.String name)
name - of the variable.
public void setAttribute(java.lang.String name,
java.lang.Object obj)
name - name of the variable.Note: if this method is called multiple times with the same
name, the object stored by this variable is overwritten.obj - The object to be stored as a variable.public void removeAttribute(java.lang.String name)
name - of the variable.public java.util.Enumeration getAttributeNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||