Package dw.cli.commands
Class SimpleCommand
- java.lang.Object
-
- dw.cli.Command
-
- dw.cli.commands.SimpleCommand
-
- Direct Known Subclasses:
CliVersion
,RPCVersionSupportedGetter
,TimeGetter
,TitleGetter
,VersionGetter
,XMLRPCAPIVersionGetter
public abstract class SimpleCommand extends Command
-
-
Constructor Summary
Constructors Constructor Description SimpleCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
query(DokuJClient dokuClient)
protected void
registerParameters(com.martiansoftware.jsap.JSAP jsap)
protected Output
run(DokuJClient dokuClient)
-
Methods inherited from class dw.cli.Command
addLongFormatSwitch, addPageIdOption, getUsage, parseArguments, run
-
-
-
-
Method Detail
-
registerParameters
protected void registerParameters(com.martiansoftware.jsap.JSAP jsap) throws com.martiansoftware.jsap.JSAPException
- Specified by:
registerParameters
in classCommand
- Throws:
com.martiansoftware.jsap.JSAPException
-
run
protected Output run(DokuJClient dokuClient) throws DokuException
- Specified by:
run
in classCommand
- Throws:
DokuException
-
query
protected abstract java.lang.String query(DokuJClient dokuClient) throws DokuException
- Throws:
DokuException
-
-