public class BatchEditLineHandler extends CommandHandlerWithHelp
helpArg| Constructor and Description |
|---|
BatchEditLineHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doHandle(CommandContext ctx) |
boolean |
hasArgument(CommandContext ctx,
int index)
It has to accept everything since we don't know what kind of command will be edited.
|
boolean |
hasArgument(CommandContext ctx,
String name)
Checks whether the command handler recognizes the argument by the name.
|
boolean |
isAvailable(CommandContext ctx)
Checks whether the command is available in the current context
(e.g.
|
protected void |
recognizeArguments(CommandContext ctx) |
handle, isBatchMode, printHelp, printListaddArgument, getArgument, getArgumentsprotected void recognizeArguments(CommandContext ctx) throws CommandFormatException
recognizeArguments in class CommandHandlerWithArgumentsCommandFormatExceptionpublic boolean isAvailable(CommandContext ctx)
CommandHandlerisAvailable in interface CommandHandlerisAvailable in class CommandHandlerWithHelpctx - current contextprotected void doHandle(CommandContext ctx) throws CommandFormatException
doHandle in class CommandHandlerWithHelpCommandFormatExceptionpublic boolean hasArgument(CommandContext ctx, int index)
hasArgument in interface CommandHandlerhasArgument in class CommandHandlerWithArgumentsctx - the current contextindex - argument index to checkpublic boolean hasArgument(CommandContext ctx, String name)
CommandHandlerhasArgument in interface CommandHandlerhasArgument in class CommandHandlerWithArgumentsctx - the current contextname - argument name to checkCopyright © 2014 JBoss by Red Hat. All rights reserved.