org.objectweb.dsrg.sofa.cushion
Class PrintAction

java.lang.Object
  extended by org.objectweb.dsrg.sofa.cushion.PrintAction
All Implemented Interfaces:
ActionInterface

public class PrintAction
extends java.lang.Object
implements ActionInterface

Print action. Prints out miscalaneous requested info from the repository.

Author:
Petr Hnetynka

Field Summary
 
Fields inherited from interface org.objectweb.dsrg.sofa.cushion.ActionInterface
ACTION_ERROR, BAD_PARAMETERS, NOT_ENOUGH_PARAMETERS, SUCCESS, TOO_MANY_PARAMETERS
 
Constructor Summary
PrintAction()
           
 
Method Summary
 int perform(java.lang.String[] argv, java.io.PrintStream out)
          Prints out entity info.
 void printHelp(java.lang.StringBuffer msg)
          Prints help.
 void printUsage(java.lang.StringBuffer msg)
          Prints usage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintAction

public PrintAction()
Method Detail

perform

public int perform(java.lang.String[] argv,
                   java.io.PrintStream out)
Prints out entity info.

Specified by:
perform in interface ActionInterface
Parameters:
argv - command-line arguments
out - PrintStream for output
See Also:
ActionInterface.perform(String[], PrintStream)

printHelp

public void printHelp(java.lang.StringBuffer msg)
Prints help.

Specified by:
printHelp in interface ActionInterface
Parameters:
msg - buffer to which help message is printed
See Also:
ActionInterface.printHelp(StringBuffer)

printUsage

public void printUsage(java.lang.StringBuffer msg)
Prints usage.

Specified by:
printUsage in interface ActionInterface
Parameters:
msg - buffer to which help message is printed
See Also:
ActionInterface.printUsage(StringBuffer)