XML:DB Lexus

org.xmldb.xupdate.lexus.commands
Class TempTree

java.lang.Object
  |
  +--org.xmldb.xupdate.lexus.commands.TempTree

public class TempTree
extends java.lang.Object

This class temporary stores variables with their name and selected nodes.

Version:
$Id: TempTree.java,v 1.3 2002/02/26 11:11:37 jbreedveld Exp $
Author:
SMB

Constructor Summary
TempTree()
           
 
Method Summary
 void addVariable(java.lang.String name, org.w3c.dom.NodeList tree)
          Add a new variable to the Hashtable.
 org.w3c.dom.NodeList getTreeForName(java.lang.String name)
          Returns the selection for the given variable name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempTree

public TempTree()
Method Detail

addVariable

public void addVariable(java.lang.String name,
                        org.w3c.dom.NodeList tree)
Add a new variable to the Hashtable. Existing variables will be overwritten.
Parameters:
name - the name of the variable.
tree - the selected nodes.

getTreeForName

public org.w3c.dom.NodeList getTreeForName(java.lang.String name)
                                    throws java.lang.Exception
Returns the selection for the given variable name.
Returns:
the selected nodes.
Throws:
java.lang.Exception - if there is no such variable.
java.lang.IllegalArgumentException - if the variable name is null.

XML:DB Lexus

Copyright (c) 2001 The XML:DB Initiative All rights reserved