org.openphacts.nextprot.util
Class EchoTool

java.lang.Object
  extended by org.apache.velocity.tools.generic.SafeConfig
      extended by org.openphacts.nextprot.util.EchoTool

public class EchoTool
extends org.apache.velocity.tools.generic.SafeConfig


Field Summary
 
Fields inherited from class org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
 
Constructor Summary
EchoTool()
          Creates the echo tool
 
Method Summary
 void advance()
          Advances the progress meter by a single unit.
 void advance(Object amount)
          Advances the progress meter by a certain amount.
 Object getColumns()
          Get the MaxCols value.
 Object getMark()
          Get the HashMark value.
 void println(Object x)
          Prints a message to stdout.
 void setColumns(Object newMaxCols)
          Set the MaxCols value.
 void setMark(Object newHashMark)
          Set the HashMark value.
 void startProgress()
          Resets the progress meter
 
Methods inherited from class org.apache.velocity.tools.generic.SafeConfig
configure, configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EchoTool

public EchoTool()
Creates the echo tool

Method Detail

println

public void println(Object x)
Prints a message to stdout.

Parameters:
x - the message object

startProgress

public void startProgress()
Resets the progress meter


advance

public void advance(Object amount)
Advances the progress meter by a certain amount.

Parameters:
amount - the amount of progress.

advance

public void advance()
Advances the progress meter by a single unit.


getMark

public Object getMark()
Get the HashMark value.

Returns:
the HashMark value.

setMark

public void setMark(Object newHashMark)
Set the HashMark value.

Parameters:
newHashMark - The new HashMark value.

getColumns

public Object getColumns()
Get the MaxCols value.

Returns:
the MaxCols value.

setColumns

public void setColumns(Object newMaxCols)
Set the MaxCols value.

Parameters:
newMaxCols - The new MaxCols value.


Copyright © 2012. All Rights Reserved.