public class BatchEditLineHandler extends CommandHandlerWithHelp
helpArg
Constructor and Description |
---|
BatchEditLineHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doHandle(CommandContext ctx) |
boolean |
hasArgument(int index)
It has to accept everything since we don't know what kind of command will be edited.
|
boolean |
hasArgument(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.
|
handle, isBatchMode, printHelp, printList
addArgument, getArguments
public boolean isAvailable(CommandContext ctx)
CommandHandler
isAvailable
in interface CommandHandler
isAvailable
in class CommandHandlerWithHelp
ctx
- current contextprotected void doHandle(CommandContext ctx)
doHandle
in class CommandHandlerWithHelp
public boolean hasArgument(int index)
hasArgument
in interface CommandHandler
hasArgument
in class CommandHandlerWithArguments
index
- argument index to checkpublic boolean hasArgument(String name)
CommandHandler
hasArgument
in interface CommandHandler
hasArgument
in class CommandHandlerWithArguments
name
- argument name to checkCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.