org.apache.cocoon.components.xscript
Class XScriptVariableScope

java.lang.Object
  extended by org.apache.cocoon.components.xscript.XScriptVariableScope

public class XScriptVariableScope
extends 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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Ovidiu Predescu

Constructor Summary
XScriptVariableScope()
           
 
Method Summary
 boolean defines(String name)
           
 XScriptObject get(String name)
          Obtains the value of the XScript name variable.
 void put(String name, XScriptObject value)
          Define a new variable or overwrite the value of an existing variable in this scope.
 XScriptObject remove(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
 

Constructor Detail

XScriptVariableScope

public XScriptVariableScope()
Method Detail

put

public void put(String name,
                XScriptObject value)
Define a new variable or overwrite the value of an existing variable in this scope.

Parameters:
name - a String value
value - a XScriptObject value

get

public XScriptObject get(String name)
Obtains the value of the XScript name variable.

Parameters:
name - a String value
Returns:
a XScriptObject value

remove

public XScriptObject remove(String name)
Removes the XScript variable that's accessible via name.

Parameters:
name - a String value

defines

public boolean defines(String name)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.