nl.toolforge.karma.core.vc.cvsimpl
Class CVSModuleStatus

java.lang.Object
  extended bynl.toolforge.karma.core.vc.cvsimpl.CVSModuleStatus
All Implemented Interfaces:
ModuleStatus, RunnerResult

public class CVSModuleStatus
extends java.lang.Object
implements ModuleStatus

Version:
$Id: CVSModuleStatus.java,v 1.11 2004/11/16 22:31:57 asmedes Exp $
Author:
D.A. Smedes

Constructor Summary
CVSModuleStatus(Module module)
           
CVSModuleStatus(Module module, org.netbeans.lib.cvsclient.command.log.LogInformation logInfo)
          Creates a ModuleStatus instance with the LogInformation object that was generated by the cvs log command.
 
Method Summary
 boolean authenticationFailure()
           
 boolean connectionFailure()
           
 boolean existsInRepository()
           
 Version getLastVersion()
          The latest promoted version of the module in the version control system for the branch.
 Version getLocalVersion()
          Gets the local version of the module, which is determined by parsing the CVS/Entries file.
 Version getNextMajorVersion()
           
 Version getNextVersion()
          Returns a Version instance representing the next possible version (major or patch) for the module.
 boolean internalError()
           
 void setAuthenticationFailure()
           
 void setConnnectionFailure()
          Sets the indication that a connection failure to the remote CVS repository has occurred.
 void setExistsInRepository(boolean exists)
           
 void setInternalError()
           
 void setLogInformation(java.lang.Object logInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CVSModuleStatus

public CVSModuleStatus(Module module,
                       org.netbeans.lib.cvsclient.command.log.LogInformation logInfo)
Creates a ModuleStatus instance with the LogInformation object that was generated by the cvs log command.

Parameters:
module - The module.
logInfo - A Netbeans LogInformation object.

CVSModuleStatus

public CVSModuleStatus(Module module)
Method Detail

setLogInformation

public void setLogInformation(java.lang.Object logInfo)
Specified by:
setLogInformation in interface ModuleStatus

getNextVersion

public Version getNextVersion()
Returns a Version instance representing the next possible version (major or patch) for the module.

Specified by:
getNextVersion in interface ModuleStatus
Returns:

getNextMajorVersion

public Version getNextMajorVersion()
Specified by:
getNextMajorVersion in interface ModuleStatus

getLastVersion

public Version getLastVersion()
The latest promoted version of the module in the version control system for the branch.

Specified by:
getLastVersion in interface ModuleStatus
Returns:

getLocalVersion

public Version getLocalVersion()
                        throws CVSException
Gets the local version of the module, which is determined by parsing the CVS/Entries file.

Specified by:
getLocalVersion in interface ModuleStatus
Returns:
The version of the local checkout or null when the HEAD of the developmentline is local.
Throws:
CVSException

setExistsInRepository

public void setExistsInRepository(boolean exists)
Specified by:
setExistsInRepository in interface ModuleStatus

existsInRepository

public boolean existsInRepository()
Specified by:
existsInRepository in interface ModuleStatus

connectionFailure

public boolean connectionFailure()
Specified by:
connectionFailure in interface ModuleStatus

authenticationFailure

public boolean authenticationFailure()
Specified by:
authenticationFailure in interface ModuleStatus

internalError

public boolean internalError()
Specified by:
internalError in interface ModuleStatus

setConnnectionFailure

public void setConnnectionFailure()
Sets the indication that a connection failure to the remote CVS repository has occurred.


setAuthenticationFailure

public void setAuthenticationFailure()

setInternalError

public void setInternalError()


Copyright © 2002-2004 Toolforge. All Rights Reserved.