| java.lang.Object org.apache.cocoon.components.xscript.XScriptVariableScope
XScriptVariableScope | public class XScriptVariableScope (Code) | | XScriptVariableScope maintains variables in a given
scope. A variable has a unique name within a scope, but multiple
variables with the same name can exist within different scopes.
author: Ovidiu Predescu version: CVS $Id: XScriptVariableScope.java 433543 2006-08-22 06:22:54Z crossley $ since: August 4, 2001 |
Field Summary | |
HashMap | variables The variables store; each entry is String
representing the name of the variable, with the corresponding
value an
XScriptObject . |
Method Summary | |
public synchronized boolean | defines(String name) | public synchronized XScriptObject | get(String name) Obtains the value of the XScript name variable. | public synchronized void | put(String name, XScriptObject value) Define a new variable or overwrite the value of an existing
variable in this scope. | public synchronized XScriptObject | remove(String name) Removes the XScript variable that's accessible via
name . |
variables | HashMap variables(Code) | | The variables store; each entry is String
representing the name of the variable, with the corresponding
value an
XScriptObject .
|
defines | public synchronized boolean defines(String name)(Code) | | |
put | public synchronized void put(String name, XScriptObject value)(Code) | | Define a new variable or overwrite the value of an existing
variable in this scope.
Parameters: name - a String value Parameters: value - a XScriptObject value |
remove | public synchronized XScriptObject remove(String name)(Code) | | Removes the XScript variable that's accessible via
name .
Parameters: name - a String value |
|
|