net.sf.tomp.xtcl.command
Class Load

java.lang.Object
  extended by net.sf.tomp.xtcl.command.AbstractCommand
      extended by net.sf.tomp.xtcl.command.VarCommand
          extended by net.sf.tomp.xtcl.command.FileCommand
              extended by net.sf.tomp.xtcl.command.Load
All Implemented Interfaces:
Command

public class Load
extends FileCommand

Loads a DOM tree from file, puts into Context as variable.

Author:
tomp

Field Summary
 
Fields inherited from class net.sf.tomp.xtcl.command.FileCommand
fileName
 
Fields inherited from class net.sf.tomp.xtcl.command.VarCommand
var
 
Constructor Summary
Load()
           
 
Method Summary
 int execute(Context context)
          Loads a DOM tree from file, puts into Context as variable.
 java.lang.String toString()
           
 
Methods inherited from class net.sf.tomp.xtcl.command.FileCommand
getFile, setFile
 
Methods inherited from class net.sf.tomp.xtcl.command.VarCommand
setVar
 
Methods inherited from class net.sf.tomp.xtcl.command.AbstractCommand
done, initParameters, listArray, listList, listMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Load

public Load()
Method Detail

execute

public int execute(Context context)
            throws java.lang.Exception
Loads a DOM tree from file, puts into Context as variable.

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
context - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.Exception - DOCUMENT ME!

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
"LOAD " + var + " <- " + fileName;


Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.