public class OperationCommandType extends AbstractCommandType
Modifier and Type | Class and Description |
---|---|
static class |
OperationCommandType.BlobInputSetter |
static class |
OperationCommandType.DocInputSetter |
static class |
OperationCommandType.OperationParamSetter |
CommandType.Setter, CommandType.Token
Modifier and Type | Field and Description |
---|---|
protected int |
inputType |
protected OperationDocumentation |
op |
static int |
TYPE_BLOB |
static int |
TYPE_BLOBS |
static int |
TYPE_DOC |
static int |
TYPE_DOCS |
static int |
TYPE_VOID |
args, cmdClass, injectable, params
Constructor and Description |
---|
OperationCommandType(int inputType,
OperationDocumentation op,
Map<String,CommandType.Token> params,
List<CommandType.Token> args) |
Modifier and Type | Method and Description |
---|---|
protected Runnable |
createInstance(Shell shell) |
static OperationCommandType |
fromOperation(OperationDocumentation op) |
String[] |
getAliases() |
String |
getHelp() |
int |
getInputType() |
String |
getName() |
static int |
getOperationInputType(OperationDocumentation op) |
boolean |
hasBlobInput() |
boolean |
hasDocumentInput() |
boolean |
hasVoidInput() |
compareTo, getArguments, getCommandClass, getLastToken, getLastTokenCompletor, getParamCompletor, getParameters, getSyntax, inject, newInstance
public static final int TYPE_VOID
public static final int TYPE_DOC
public static final int TYPE_BLOB
public static final int TYPE_DOCS
public static final int TYPE_BLOBS
protected OperationDocumentation op
protected int inputType
public OperationCommandType(int inputType, OperationDocumentation op, Map<String,CommandType.Token> params, List<CommandType.Token> args)
public boolean hasVoidInput()
public boolean hasBlobInput()
public boolean hasDocumentInput()
public int getInputType()
public static OperationCommandType fromOperation(OperationDocumentation op)
public static int getOperationInputType(OperationDocumentation op)
public String[] getAliases()
protected Runnable createInstance(Shell shell) throws Exception
createInstance
in class AbstractCommandType
Exception
Copyright © 2017 Nuxeo. All rights reserved.