public abstract class CommandHandlerWithArguments extends Object implements CommandHandler
| Constructor and Description |
|---|
CommandHandlerWithArguments() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(CommandArgument arg) |
Collection<CommandArgument> |
getArguments(CommandContext ctx)
Returns a collection of the command arguments the handler supports in the current context.
|
boolean |
hasArgument(int index)
Checks whether the command handler accepts an argument with the specified index.
|
boolean |
hasArgument(String name)
Checks whether the command handler recognizes the argument by the name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandle, isAvailable, isBatchModepublic void addArgument(CommandArgument arg)
public boolean hasArgument(String name)
CommandHandlerhasArgument in interface CommandHandlername - argument name to checkpublic boolean hasArgument(int index)
CommandHandlerhasArgument in interface CommandHandlerindex - argument index to checkpublic Collection<CommandArgument> getArguments(CommandContext ctx)
CommandHandlergetArguments in interface CommandHandlerctx - current command line contextCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.