net.sf.tomp.xtcl.command
Class Verbose

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

public class Verbose
extends AbstractCommand

Sets verbosity to Context.

Author:
tomp

Field Summary
protected  boolean verbose
          verbosity
 
Constructor Summary
Verbose()
           
 
Method Summary
 int execute(Context c)
          Sets verbosity to Context.
 void setVerbose(boolean v)
          Remembers verbosity to be later set Context.
 java.lang.String toString()
           
 
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
 

Field Detail

verbose

protected boolean verbose
verbosity

Constructor Detail

Verbose

public Verbose()
Method Detail

setVerbose

public void setVerbose(boolean v)
Remembers verbosity to be later set Context.

Parameters:
v - verbosity

execute

public int execute(Context c)
            throws java.lang.Exception
Sets verbosity to Context.

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
c - Context this command will be executed in.
Returns:
always 0 == success, OK
Throws:
java.lang.Exception - only if I/O error occurs when reporting the result to user.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
"VERBOSE " + (verbose ? "ON" : "OFF");


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