Package dw.cli.commands
Class ItemListToStringCommand<T>
- java.lang.Object
-
- dw.cli.Command
-
- dw.cli.commands.ItemListToStringCommand<T>
-
- Direct Known Subclasses:
AllPageGetter,AttachmentReader,BackLinksGetter,LinksLister,PageListGetter,PageVersionsGetter,RecentChangesGetter,RecentMediaChangesGetter,Searcher
public abstract class ItemListToStringCommand<T> extends Command
-
-
Constructor Summary
Constructors Constructor Description ItemListToStringCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.StringitemToString(T item)protected abstract java.util.List<T>query(DokuJClient dokuClient)protected Outputrun(DokuJClient dokuClient)-
Methods inherited from class dw.cli.Command
addLongFormatSwitch, addPageIdOption, getUsage, parseArguments, registerParameters, run
-
-
-
-
Method Detail
-
run
protected Output run(DokuJClient dokuClient) throws DokuException
- Specified by:
runin classCommand- Throws:
DokuException
-
query
protected abstract java.util.List<T> query(DokuJClient dokuClient) throws DokuException
- Throws:
DokuException
-
itemToString
protected abstract java.lang.String itemToString(T item)
-
-