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.


Field Summary
protected  java.lang.String cwd
           
protected static java.lang.String ERROR_INVALID_RCS
           
protected static java.lang.String ERROR_NO_DIRECTORY
           
protected static java.lang.String ERROR_NO_FILE
           
protected static java.lang.String ERROR_NO_VERSION
           
protected  java.io.File file
           
protected static java.lang.String MESG_USAGE
           
protected static java.lang.String PATH_CWD
           
protected static java.lang.String PROMPT
           
protected static java.lang.String STRING_OK
           
protected static java.lang.String WARNING_NOT_IMPLEMENTED
           
 
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 net.ultrametrics.util.TestConsole
command_gc, command_memory, command_properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.
Method Detail

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.