org.ow2.shelbie.core.console
Class AnsiUsagePrinter

java.lang.Object
  extended by org.ow2.shelbie.core.console.AnsiUsagePrinter
All Implemented Interfaces:
org.ow2.shelbie.core.IUsagePrinter

public class AnsiUsagePrinter
extends Object
implements org.ow2.shelbie.core.IUsagePrinter

Print commands usage using an Ansi buffer.


Constructor Summary
AnsiUsagePrinter()
           
 
Method Summary
 void printUsage(org.apache.felix.gogo.commands.Command command, Set<org.apache.felix.gogo.commands.Option> options, Set<org.apache.felix.gogo.commands.Argument> arguments, PrintStream out)
          Prints in the given stream the usage information to be displayed to the user for the given command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnsiUsagePrinter

public AnsiUsagePrinter()
Method Detail

printUsage

public void printUsage(org.apache.felix.gogo.commands.Command command,
                       Set<org.apache.felix.gogo.commands.Option> options,
                       Set<org.apache.felix.gogo.commands.Argument> arguments,
                       PrintStream out)
Prints in the given stream the usage information to be displayed to the user for the given command.

Specified by:
printUsage in interface org.ow2.shelbie.core.IUsagePrinter
Parameters:
command - command annotation description
options - set of option annotation description
arguments - set of argument annotation description
out - the PrintStream to be used to write the usage.


Copyright © 2013 OW2 Consortium. All Rights Reserved.