public abstract class AbstractOperation extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CID_SEPARATOR |
protected org.jboss.console.twiddle.command.CommandContext |
context |
protected org.jboss.logging.Logger |
log |
protected ArrayList<Object> |
opArguments |
protected String |
operationName |
protected Object |
operationResult |
protected ArrayList<String> |
opSignature |
protected AbstractSleeCommand |
sleeCommand |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOperation(org.jboss.console.twiddle.command.CommandContext context,
org.jboss.logging.Logger log,
AbstractSleeCommand sleeCommand) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArg(Object arg,
Class<? extends Object> argClass,
boolean usPE) |
protected void |
addArg(Object arg,
String argClass,
boolean usPE) |
abstract void |
buildOperation(gnu.getopt.Getopt opts,
String[] args)
Each operation should create this method.
|
void |
displayResult()
Method to display result of operation.
|
ArrayList<Object> |
getOpArguments() |
String |
getOperationName() |
ArrayList<String> |
getOpSignature() |
void |
invoke() |
protected String |
prepareResultText() |
protected String |
unfoldArray(String prefix,
Object[] array,
PropertyEditor editor)
Default implementation.
|
public static final String CID_SEPARATOR
protected Object operationResult
protected AbstractSleeCommand sleeCommand
protected String operationName
protected org.jboss.console.twiddle.command.CommandContext context
protected org.jboss.logging.Logger log
protected AbstractOperation(org.jboss.console.twiddle.command.CommandContext context,
org.jboss.logging.Logger log,
AbstractSleeCommand sleeCommand)
public String getOperationName()
public abstract void buildOperation(gnu.getopt.Getopt opts,
String[] args)
throws org.jboss.console.twiddle.command.CommandException
original - argv - org.jboss.console.twiddle.command.CommandExceptionpublic void displayResult()
operationResult - context - log - protected String prepareResultText()
protected String unfoldArray(String prefix, Object[] array, PropertyEditor editor)
prefix - array - protected void addArg(Object arg, Class<? extends Object> argClass, boolean usPE) throws org.jboss.console.twiddle.command.CommandException
org.jboss.console.twiddle.command.CommandExceptionprotected void addArg(Object arg, String argClass, boolean usPE) throws org.jboss.console.twiddle.command.CommandException
org.jboss.console.twiddle.command.CommandExceptionpublic void invoke()
throws org.jboss.console.twiddle.command.CommandException
org.jboss.console.twiddle.command.CommandExceptionCopyright © 2016. All Rights Reserved.