|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--allensoft.javacvs.client.ui.command.CommandInterpretter
Interprets commands of the format used by the cvs command line program and executes them using a CVSClient object.
Constructor Summary | |
CommandInterpretter(CVSClient client)
Creates a new CommandInterpretter that inetrprets CVS commands and invokes the appropriate methods on the CVSClient. |
Method Summary | |
CVSRequestBatch |
add(java.lang.String sArguments)
Performs an add command using the supplied arguments. |
void |
addCommandInterpretterListener(CommandInterpretterListener l)
|
CVSRequestBatch |
checkout(java.lang.String sArguments)
Performs a checkout command using the supplied arguments. |
CVSRequestBatch |
commit(java.lang.String sArguments)
Performs a commit command using the supplied arguments. |
CVSRequestBatch |
diff(java.lang.String sArguments)
|
protected void |
displayAddHelp()
|
protected void |
displayCheckoutHelp()
|
protected void |
displayCommitHelp()
|
protected void |
displayDiffHelp()
|
protected void |
displayErrorText(java.lang.String sText)
Displays error messages. |
protected void |
displayExportHelp()
|
protected void |
displayGlobalOptionsHelp()
Displays help for global options. |
protected void |
displayImportDirectoryHelp()
|
protected void |
displayKeywordSubstitutionModesHelp()
|
protected void |
displayParseException(java.text.ParseException e)
|
protected void |
displayRemoveHelp()
|
protected void |
displayTagHelp()
|
protected void |
displayText(java.lang.String sText)
Displays normal messages. |
protected void |
displayUpdateHelp()
|
protected void |
displayUsageHelp()
|
CVSRequestBatch |
export(java.lang.String sArguments)
|
protected void |
fireInterprettingCommand(java.lang.String sCommand)
|
java.io.File |
getCurrentDirectory()
Gets the current directory that commands are interpretted in. |
boolean |
getDisplayCommandHelp()
|
RepositoryLocation |
getRepositoryLocation()
Gets the repository location used for command such as checkout. |
CVSRequestBatch |
importDirectory(java.lang.String sArguments)
|
CVSRequestBatch |
interpretCommand(java.lang.String sCommand)
Interprets a command and executes it using the CVSClient specified during construction. |
CVSRequestBatch |
interpretCommand(java.lang.String[] command)
Interprets a command from an array of strings. |
CVSRequestBatch |
remove(java.lang.String sArguments)
|
void |
removeCommandListener(CommandInterpretterListener l)
|
void |
setCurrentDirectory(java.io.File directory)
Sets the current directory that commands are interpretted in. |
void |
setDisplayCommandHelp(boolean b)
|
void |
setRepositoryLocation(RepositoryLocation location)
Sets the repository location used for commands such as checkout. |
CVSRequestBatch |
tag(java.lang.String sArguments)
|
CVSRequestBatch |
update(java.lang.String sArguments)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommandInterpretter(CVSClient client)
Method Detail |
public void addCommandInterpretterListener(CommandInterpretterListener l)
public void removeCommandListener(CommandInterpretterListener l)
public java.io.File getCurrentDirectory()
public void setCurrentDirectory(java.io.File directory)
public RepositoryLocation getRepositoryLocation() throws CVSException
setRepositoryLocation
method then this method
will attempt to use one defined by the system property user.env.cvsroot. It is expected
that this system property will be initialised by the JVM (using the -D option) to equal the
$CVSROOT environment variable. If this property has not been defined then a CVSException is thrown
with a message to indicate that the repository location has not yet been specified.CVSException
- if the repository location has not been set with setRepositoryLocation
and the system property "user.env.cvsroot" has not been set.public void setRepositoryLocation(RepositoryLocation location)
public boolean getDisplayCommandHelp()
public void setDisplayCommandHelp(boolean b)
public CVSRequestBatch interpretCommand(java.lang.String sCommand) throws CVSException, java.io.IOException, java.text.ParseException
null
is returned.public CVSRequestBatch interpretCommand(java.lang.String[] command) throws CVSException, java.io.IOException, java.text.ParseException
interpretCommand(String)
method.public CVSRequestBatch checkout(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
public CVSRequestBatch commit(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
public CVSRequestBatch update(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
public CVSRequestBatch add(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
public CVSRequestBatch remove(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
public CVSRequestBatch importDirectory(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
public CVSRequestBatch export(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
public CVSRequestBatch diff(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
public CVSRequestBatch tag(java.lang.String sArguments) throws CVSException, java.io.IOException, java.text.ParseException
protected void fireInterprettingCommand(java.lang.String sCommand)
protected void displayGlobalOptionsHelp()
e
- ParseException that occurred whilst trying to parse the global options or null if not applicable.protected void displayUsageHelp()
protected void displayKeywordSubstitutionModesHelp()
protected void displayUpdateHelp()
protected void displayCommitHelp()
protected void displayAddHelp()
protected void displayRemoveHelp()
protected void displayImportDirectoryHelp()
protected void displayExportHelp()
protected void displayCheckoutHelp()
protected void displayDiffHelp()
protected void displayTagHelp()
protected void displayParseException(java.text.ParseException e)
protected void displayErrorText(java.lang.String sText)
protected void displayText(java.lang.String sText)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |