|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.probe.shell.JasmineProbeCommand
public abstract class JasmineProbeCommand
Common code for all JasmineProbe Commands. Contains command line parsing.
| Constructor Summary | |
|---|---|
JasmineProbeCommand()
|
|
| Method Summary | |
|---|---|
protected void |
createIndicator(java.lang.String commandName,
org.ow2.jasmine.probe.JasmineIndicator indicator,
java.io.PrintStream out,
java.io.PrintStream err)
|
abstract java.lang.String |
getName()
|
JasmineProbeCommandParams |
getParams()
|
abstract org.ow2.jasmine.probe.JasmineProbeManager |
getProbeManager()
|
java.lang.String |
getProperties()
By default, there are no properties. |
java.lang.String |
getRequiredOptions()
To be extended by commands having required options |
java.lang.String |
getUsage()
Returns the usage string for the command. |
protected boolean |
parseOptions(java.lang.String line,
java.io.PrintStream out,
java.io.PrintStream err)
Called by all the commands that have parameters |
protected java.util.Map<java.lang.String,java.lang.String> |
parseProperties(java.util.Collection<org.ow2.jasmine.probe.JasminePropertyInfo> propsInfo,
JasmineProbeCommandParams params)
Construct a properties Map, where the keys are property names provided by propsInfo and the values of the properties should be read from the command parameters |
void |
setParams(JasmineProbeCommandParams params)
|
protected boolean |
validParam(java.lang.String param)
Verify that the command parameter has the following format : paramName=paramValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JasmineProbeCommand()
| Method Detail |
|---|
public abstract java.lang.String getName()
public abstract org.ow2.jasmine.probe.JasmineProbeManager getProbeManager()
public void setParams(JasmineProbeCommandParams params)
public JasmineProbeCommandParams getParams()
protected boolean parseOptions(java.lang.String line,
java.io.PrintStream out,
java.io.PrintStream err)
line - out - err -
public java.lang.String getProperties()
public java.lang.String getUsage()
public java.lang.String getRequiredOptions()
protected java.util.Map<java.lang.String,java.lang.String> parseProperties(java.util.Collection<org.ow2.jasmine.probe.JasminePropertyInfo> propsInfo,
JasmineProbeCommandParams params)
throws org.ow2.jasmine.probe.JasmineProbeException
propsInfo - contains the properties descriptionparams - contains the command parameters
org.ow2.jasmine.probe.JasmineProbeExceptionprotected boolean validParam(java.lang.String param)
param -
protected void createIndicator(java.lang.String commandName,
org.ow2.jasmine.probe.JasmineIndicator indicator,
java.io.PrintStream out,
java.io.PrintStream err)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||