com.buglabs.osgi.shell.pub
Class AbstractCommand
java.lang.Object
com.buglabs.osgi.shell.pub.AbstractCommand
- All Implemented Interfaces:
- ICommand
- Direct Known Subclasses:
- Bundles, GC, OBR, Package
public abstract class AbstractCommand
- extends java.lang.Object
- implements ICommand
A helper base class for commands for the command line.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
arguments
protected java.util.List arguments
outWriter
protected java.io.BufferedWriter outWriter
err
protected java.io.OutputStream err
context
protected BundleContext context
AbstractCommand
public AbstractCommand()
initialize
public void initialize(java.util.List arguments,
java.io.OutputStream out,
java.io.OutputStream err,
BundleContext context)
- Specified by:
initialize in interface ICommand
printError
protected void printError(java.lang.String message)
throws java.io.IOException
- Throws:
java.io.IOException
println
protected void println(java.lang.String message)
throws java.io.IOException
- Throws:
java.io.IOException
isValid
public boolean isValid()
- Specified by:
isValid in interface ICommand
getUsage
public java.lang.String getUsage()
- Specified by:
getUsage in interface ICommand
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface ICommand
setDefaultFilter
protected void setDefaultFilter(TableViewer tv,
int position)