public class DesktopManager extends CommandManager
-newDesktop
: behave as though this is the first time startup
-cleanDesktop
: synonym for newDesktop (backward compatibility)
Constructor and Description |
---|
DesktopManager() |
Modifier and Type | Method and Description |
---|---|
HelpTree.Node |
getHelp()
Get an object embodying the command line help for the commands managed
by this CommandManager.
|
boolean |
parseCommand(java.lang.String cmd,
java.util.ListIterator argIter,
CommandContext ctx)
Parse a command (and any arguments it might take).
|
isMatch, isMatch, isPrefixMatch
public HelpTree.Node getHelp()
CommandManager
getHelp
in class CommandManager
public boolean parseCommand(java.lang.String cmd, java.util.ListIterator argIter, CommandContext ctx) throws Command.Fault
CommandManager
parseCommand
in class CommandManager
cmd
- the command to be parsedargIter
- an iterator from which to get any arguments that
might be required by the optionctx
- a context object to use while parsing the commandCommand.Fault
- if the command is recognized by this command manager
but could not be successfully parsed or otherwise handled.Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.