org.acm.seguin.version
Class VersionControlCache

java.lang.Object
  extended by org.acm.seguin.version.VersionControlCache

public class VersionControlCache
extends java.lang.Object

Cache of files - so that it doesn't take so long to get the menu

Author:
Chris Seguin

Field Summary
static int ADD
          Description of the Field
static int ADD_PROGRESS
          Description of the Field
static int CHECK_IN
          Description of the Field
static int CHECK_IN_PROGRESS
          Description of the Field
static int CHECK_OUT
          Description of the Field
static int CHECK_OUT_PROGRESS
          Description of the Field
 
Constructor Summary
protected VersionControlCache()
          Constructor for the VersionControlCache object
 
Method Summary
 void add(java.lang.String filename, int type)
          Add to the cache
static VersionControlCache getCache()
          Return the cache
 boolean isInCache(java.lang.String filename)
          Looks up a file in the cache
 int lookup(java.lang.String filename)
          Looks up a file in the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
Description of the Field

See Also:
Constant Field Values

CHECK_IN

public static final int CHECK_IN
Description of the Field

See Also:
Constant Field Values

CHECK_OUT

public static final int CHECK_OUT
Description of the Field

See Also:
Constant Field Values

CHECK_IN_PROGRESS

public static final int CHECK_IN_PROGRESS
Description of the Field

See Also:
Constant Field Values

CHECK_OUT_PROGRESS

public static final int CHECK_OUT_PROGRESS
Description of the Field

See Also:
Constant Field Values

ADD_PROGRESS

public static final int ADD_PROGRESS
Description of the Field

See Also:
Constant Field Values
Constructor Detail

VersionControlCache

protected VersionControlCache()
Constructor for the VersionControlCache object

Method Detail

isInCache

public boolean isInCache(java.lang.String filename)
Looks up a file in the cache

Parameters:
filename - Description of Parameter
Returns:
The InCache value

lookup

public int lookup(java.lang.String filename)
Looks up a file in the cache

Parameters:
filename - Description of Parameter
Returns:
Description of the Returned Value

add

public void add(java.lang.String filename,
                int type)
Add to the cache

Parameters:
filename - the name of the file
type - the state

getCache

public static VersionControlCache getCache()
Return the cache

Returns:
the cache