com.sun.electric.tool.cvspm
Class State

java.lang.Object
  extended by com.sun.electric.tool.cvspm.State
All Implemented Interfaces:
java.lang.Comparable

public class State
extends java.lang.Object
implements java.lang.Comparable

The CVS state of a file. User: gainsley Date: Mar 16, 2006

Specifies the state of a CVS file on disk, as a result of the CVS command 'cvs -nq update' to get status, or 'cvs -q update' to do the update. The former describes the action the latter would take (-n tells cvs not to change any disk files).

A file for which no state is given as a result of this command is up-to-date.


Field Summary
static State ADDED
           
static State CONFLICT
           
static State MODIFIED
           
static State NONE
           
static State PATCHED
           
static State REMOVED
           
static State UNKNOWN
           
static State UPDATE
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String getKey()
           
 java.lang.String getState()
           
static State getState(java.lang.String key)
           
 java.lang.String getUpdateResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE

public static final State UPDATE

PATCHED

public static final State PATCHED

ADDED

public static final State ADDED

REMOVED

public static final State REMOVED

MODIFIED

public static final State MODIFIED

CONFLICT

public static final State CONFLICT

UNKNOWN

public static final State UNKNOWN

NONE

public static final State NONE
Method Detail

getState

public final java.lang.String getState()

getKey

public final java.lang.String getKey()

getUpdateResult

public final java.lang.String getUpdateResult()

getState

public static State getState(java.lang.String key)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable