Package dw.cli
Class Command
- java.lang.Object
-
- dw.cli.Command
-
- Direct Known Subclasses:
AclChanger
,AclChecker
,AttachmentDeleter
,AttachmentGetter
,AttachmentInfoGetter
,AttachmentPutter
,HelpPrinter
,ItemListToStringCommand
,LocksSetter
,PageGetter
,PageHtmlGetter
,PageInfoGetter
,PagePutter
,PageVersionGetter
,SimpleCommand
public abstract class Command extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected com.martiansoftware.jsap.JSAPResult
_config
-
Constructor Summary
Constructors Constructor Description Command()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addLongFormatSwitch(com.martiansoftware.jsap.JSAP jsap)
protected void
addPageIdOption(com.martiansoftware.jsap.JSAP jsap)
java.lang.String
getUsage()
protected void
parseArguments(java.lang.String[] arguments)
protected abstract void
registerParameters(com.martiansoftware.jsap.JSAP jsap)
protected abstract Output
run(DokuJClient dokuClient)
Output
run(DokuJClient dokuClient, java.lang.String[] commandArguments)
-
-
-
Method Detail
-
run
public Output run(DokuJClient dokuClient, java.lang.String[] commandArguments)
-
addLongFormatSwitch
protected void addLongFormatSwitch(com.martiansoftware.jsap.JSAP jsap) throws com.martiansoftware.jsap.JSAPException
- Throws:
com.martiansoftware.jsap.JSAPException
-
addPageIdOption
protected void addPageIdOption(com.martiansoftware.jsap.JSAP jsap) throws com.martiansoftware.jsap.JSAPException
- Throws:
com.martiansoftware.jsap.JSAPException
-
parseArguments
protected void parseArguments(java.lang.String[] arguments) throws ParseOptionException
- Throws:
ParseOptionException
-
registerParameters
protected abstract void registerParameters(com.martiansoftware.jsap.JSAP jsap) throws com.martiansoftware.jsap.JSAPException
- Throws:
com.martiansoftware.jsap.JSAPException
-
run
protected abstract Output run(DokuJClient dokuClient) throws DokuException
- Throws:
DokuException
-
getUsage
public java.lang.String getUsage()
-
-