public class BatchRemoveLineHandler extends CommandHandlerWithHelp
helpArg
Constructor and Description |
---|
BatchRemoveLineHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doHandle(CommandContext ctx) |
boolean |
hasArgument(int index)
Checks whether the command handler accepts an argument with the specified index.
|
boolean |
isAvailable(CommandContext ctx)
Checks whether the command is available in the current context
(e.g.
|
handle, isBatchMode, printHelp, printList
addArgument, getArguments, hasArgument
public boolean isAvailable(CommandContext ctx)
CommandHandler
isAvailable
in interface CommandHandler
isAvailable
in class CommandHandlerWithHelp
ctx
- current contextprotected void doHandle(CommandContext ctx) throws CommandFormatException
doHandle
in class CommandHandlerWithHelp
CommandFormatException
public boolean hasArgument(int index)
CommandHandler
hasArgument
in interface CommandHandler
hasArgument
in class CommandHandlerWithArguments
index
- argument index to checkCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.