|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.netbeans.lib.cvsclient.commandLine.CommandFactory
A factory for commands. Given a command name, and any arguments passed to that command on the command line, it will return a configured Command object, ready for execution.
Command| Method Summary | |
Command |
createCommand(java.lang.String commandName,
java.lang.String[] args,
int startingIndex,
GlobalOptions gopt,
java.lang.String workingDir)
Create a CVS command. |
CommandProvider |
getCommandProvider(java.lang.String name)
Get the provider of a command. |
CommandProvider[] |
getCommandProviders()
Get the array of all command providers. |
static CommandFactory |
getDefault()
Get the default instance of CommandFactory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static CommandFactory getDefault()
public Command createCommand(java.lang.String commandName,
java.lang.String[] args,
int startingIndex,
GlobalOptions gopt,
java.lang.String workingDir)
throws java.lang.IllegalArgumentException
commandName - The name of the command to createargs - The array of argumentsstartingIndex - The index of the first argument of the command in the arrayworkingDir - The working directory
java.lang.IllegalArgumentExceptionpublic CommandProvider getCommandProvider(java.lang.String name)
name - The name of the command to get the provider for.public CommandProvider[] getCommandProviders()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||