|
||||||||||
| 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(String commandName,
JasmineIndicator indicator,
PrintStream out,
PrintStream err)
|
protected void |
createOutput(String commandName,
JasmineOutput output,
PrintStream out,
PrintStream err)
|
abstract String |
getName()
|
JasmineProbeCommandParams |
getParams()
|
abstract JasmineProbeManager |
getProbeManager()
|
String |
getRequiredOptions()
To be extended by commands having required options |
String |
getUsage()
Returns the usage string for the command. |
protected boolean |
parseOptions(String line,
PrintStream out,
PrintStream err)
Called by all the commands that have parameters |
protected Map<String,String> |
parseProperties(Collection<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(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 String getName()
public abstract JasmineProbeManager getProbeManager()
public void setParams(JasmineProbeCommandParams params)
public JasmineProbeCommandParams getParams()
protected boolean parseOptions(String line,
PrintStream out,
PrintStream err)
line - out - err -
public String getUsage()
public String getRequiredOptions()
protected Map<String,String> parseProperties(Collection<JasminePropertyInfo> propsInfo,
JasmineProbeCommandParams params)
throws JasmineProbeException
propsInfo - contains the properties descriptionparams - contains the command parameters
JasmineProbeExceptionprotected boolean validParam(String param)
param -
protected void createIndicator(String commandName,
JasmineIndicator indicator,
PrintStream out,
PrintStream err)
protected void createOutput(String commandName,
JasmineOutput output,
PrintStream out,
PrintStream err)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||