|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.adaptx.xslt.util.ScopedVariableSet
A simple stack for VariableSets
| 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(java.lang.String name)
Returns the value of a variable. |
void |
remove()
Removes the current VariableSet scope. |
void |
setVariable(java.lang.String name,
XPathResult value)
Binds the XPath result to the variable name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_SIZE
| Constructor Detail |
public ScopedVariableSet()
public ScopedVariableSet(int size)
size - the number of VariableSet objects to pre-initialize.
This must be a non-negative integer.| Method Detail |
public VariableSet current()
public XPathResult getVariable(java.lang.String name)
name - The variable name
public void setVariable(java.lang.String name,
XPathResult value)
getVariable(java.lang.String) using
the same variable name.
name - The variable namevalue - The variable's valuepublic void remove()
public void add()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||