net.ultrametrics.qcvs
Class BaseBrowser
java.lang.Object
|
+--net.ultrametrics.util.TestConsole
|
+--net.ultrametrics.qcvs.BaseBrowser
- Direct Known Subclasses:
- Browser
- public class BaseBrowser
- extends TestConsole
- implements com.fooware.util.CommandLineable
A class and console utility for browsing RCS repositories.
Constructor Summary |
BaseBrowser()
Create a new BaseBrowser. |
BaseBrowser(java.lang.String path)
Create a new BaseBrowser starting at the specified location. |
Method Summary |
protected java.lang.String |
command_help()
help |
protected java.lang.String |
command_pwd()
pwd |
java.lang.String |
doCommand(java.lang.String command,
java.lang.String[] args)
Command processor. |
static void |
main(java.lang.String[] args)
Entry-point for BaseBrowser in console mode. |
protected void |
setCommandLine(com.fooware.util.CommandLine commandLine)
Set the BaseBrowser's commandLine. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PATH_CWD
protected static java.lang.String PATH_CWD
PROMPT
protected static java.lang.String PROMPT
STRING_OK
protected static java.lang.String STRING_OK
WARNING_NOT_IMPLEMENTED
protected static java.lang.String WARNING_NOT_IMPLEMENTED
ERROR_NO_DIRECTORY
protected static java.lang.String ERROR_NO_DIRECTORY
ERROR_NO_FILE
protected static java.lang.String ERROR_NO_FILE
ERROR_NO_VERSION
protected static java.lang.String ERROR_NO_VERSION
ERROR_INVALID_RCS
protected static java.lang.String ERROR_INVALID_RCS
MESG_USAGE
protected static java.lang.String MESG_USAGE
file
protected java.io.File file
cwd
protected java.lang.String cwd
BaseBrowser
public BaseBrowser()
- Create a new BaseBrowser.
BaseBrowser
public BaseBrowser(java.lang.String path)
- Create a new BaseBrowser starting at the specified location.
- Parameters:
path
- the starting current working directory.
doCommand
public java.lang.String doCommand(java.lang.String command,
java.lang.String[] args)
- Command processor.
- Specified by:
- doCommand in interface com.fooware.util.CommandLineable
- Parameters:
command
- the command to execute.the
- command-line arguments.- Returns:
- the result of the command's execution.
- Overrides:
- doCommand in class TestConsole
command_help
protected java.lang.String command_help()
- help
- Overrides:
- command_help in class TestConsole
command_pwd
protected java.lang.String command_pwd()
- pwd
setCommandLine
protected void setCommandLine(com.fooware.util.CommandLine commandLine)
- Set the BaseBrowser's commandLine.
BaseBrowser doesn't need to know who is handling its CommandLine in order
to be its client. However, calling this method allows BaseBrowser to
update the command prompt dynamically.
- Parameters:
commandLine
- the commandline for this browser.
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Entry-point for BaseBrowser in console mode.