org.exolab.adaptx.xslt.util
public final class ScopedVariableSet extends Object
Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
| Field Summary | |
|---|---|
| static int | DEFAULT_SIZE
The default size.
|
| Constructor Summary | |
|---|---|
| ScopedVariableSet()
Creates a new ScopedVariableSet
| |
| ScopedVariableSet(int size)
Creates a new ScopedVariableSet using the givin size
| |
| Method Summary | |
|---|---|
| void | add()
adds a new VariableSet, which is then set as the current scope.
|
| VariableSet | current()
Returns the VariableSet currently in scope.
|
| XPathResult | getVariable(String name)
Returns the value of a variable. |
| void | remove()
Removes the current VariableSet scope.
|
| void | setVariable(String name, XPathResult value)
Binds the XPath result to the variable name. |
Parameters: size the number of VariableSet objects to pre-initialize. This must be a non-negative integer.
Returns: the VariableSet currently in scope.
Parameters: name The variable name
Returns: The variable's value as an XPath result, or null
Parameters: name The variable name value The variable's value