org.apache.cocoon.components.xscript
Class XScriptVariableScope
java.lang.Object
|
+--org.apache.cocoon.components.xscript.XScriptVariableScope
- public class XScriptVariableScope
- extends java.lang.Object
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.
- Since:
- August 4, 2001
- Version:
- CVS $Id: XScriptVariableScope.java,v 1.4.2.2 2002/07/30 01:17:49 vgritsenko Exp $
- Author:
- Ovidiu Predescu
Method Summary |
boolean |
defines(java.lang.String name)
|
XScriptObject |
get(java.lang.String name)
Obtains the value of the XScript name variable. |
void |
put(java.lang.String name,
XScriptObject value)
Define a new variable or overwrite the value of an existing
variable in this scope. |
XScriptObject |
remove(java.lang.String name)
Removes the XScript variable that's accessible via
name . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XScriptVariableScope
public XScriptVariableScope()
put
public void put(java.lang.String name,
XScriptObject value)
- Define a new variable or overwrite the value of an existing
variable in this scope.
- Parameters:
name
- a String
valuevalue
- a XScriptObject
value
get
public XScriptObject get(java.lang.String name)
- Obtains the value of the XScript
name
variable.
- Parameters:
name
- a String
value- Returns:
- a
XScriptObject
value
remove
public XScriptObject remove(java.lang.String name)
- Removes the XScript variable that's accessible via
name
.
- Parameters:
name
- a String
value
defines
public boolean defines(java.lang.String name)
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.