org.opensolaris.opengrok.history
Class Repository

java.lang.Object
  extended by org.opensolaris.opengrok.history.Repository
Direct Known Subclasses:
BazaarRepository, ClearCaseRepository, GitRepository, MercurialRepository, PerforceRepository, RazorRepository, RCSRepository, SCCSRepository, SubversionRepository

public abstract class Repository
extends java.lang.Object

An interface for an external repository.


Constructor Summary
Repository()
           
 
Method Summary
 java.lang.String getDirectoryName()
          Get the name of the root directory for this repository.
 boolean isWorking()
          Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be availabe etc)
 void setDirectoryName(java.lang.String directoryName)
          Specify the name of the root directory for this repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository

public Repository()
Method Detail

getDirectoryName

public java.lang.String getDirectoryName()
Get the name of the root directory for this repository.

Returns:
the name of the root directory

setDirectoryName

public void setDirectoryName(java.lang.String directoryName)
Specify the name of the root directory for this repository.

Parameters:
directoryName - the new name of the root directory

isWorking

public boolean isWorking()
Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be availabe etc)

Returns:
true if the HistoryGuru may use the repository