net.sf.tomp.xtcl.command
Class Fil

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.Fil
All Implemented Interfaces:
Command

public class Fil
extends FileCommand

Creates a File and puts it as variable to Context

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
Fil()
           
 
Method Summary
 int execute(Context context)
          Creates a File and puts it as variable to Context.
 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

Fil

public Fil()
Method Detail

execute

public int execute(Context context)
            throws java.lang.Exception
Creates a File and puts it as variable to Context.

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
context - Context
Returns:
0
Throws:
java.lang.Exception - if file creation fails

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
"FILE " + var + "=" + fileName;


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