|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.CvsFile
Represents the information about one file in the source repository.
Field Summary | |
static int |
CVS_BINARY
Used for repository files in state binary |
static int |
CVS_K
|
static int |
CVS_KVL
|
static int |
CVS_O
|
static int |
CVS_TEXT
Used for repository text files. |
static int |
CVS_UTF
Used to indicate, the file is in utf format. |
static int |
CVS_V
|
static java.lang.String |
EMPTY_PATH
Empty path. |
static java.lang.String |
PATH_DELIMITER
The path delimiter. |
Constructor Summary | |
CvsFile(java.lang.String fullname,
java.lang.String workingname,
java.util.List revisions,
int keywordSubstitution,
RepositoryFileManager fileManager)
Creates a CvsFile object. |
Method Summary | |
int |
getCurrentLinesOfCode()
Returns the number of code lines for this file. |
java.lang.String |
getFilename()
Returns the filename. |
java.lang.String |
getFullname()
Returns the fullname. |
CvsRevision |
getInitialRevision()
Gets the earliest revision of this file. |
int |
getKeywordsubst()
Returns the keywordsubst. |
CvsRevision |
getLatestRevision()
Gets the latest revision of this file. |
java.lang.String |
getModuleName()
Returns the packagename of this file. |
java.util.Iterator |
getRevisionIterator()
Returns an iterator over of revisions in this file. |
java.util.List |
getRevisions()
Returns the list of CvsRevision s of this file. |
java.util.Vector |
getRevisionsPerUser(java.lang.String user)
Returns a list of the revisions of this file from a specific user. |
java.lang.String |
getWorkingname()
Returns the workingname. |
boolean |
hasUser(java.lang.String user)
Returns true, if user worked on this file. |
boolean |
isBinary()
Returns true if the file is checked in as a binary file. |
boolean |
isDead()
Returns true if the latest revision has state dead. |
java.lang.String |
toString()
Returns a string representation of this objects content. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String PATH_DELIMITER
public static final java.lang.String EMPTY_PATH
public static final int CVS_BINARY
public static final int CVS_TEXT
public static final int CVS_K
public static final int CVS_O
public static final int CVS_V
public static final int CVS_KVL
public static final int CVS_UTF
Constructor Detail |
public CvsFile(java.lang.String fullname, java.lang.String workingname, java.util.List revisions, int keywordSubstitution, RepositoryFileManager fileManager)
fullname
- The fullname of the file (path/filename,v)workingname
- The name of the filerevisions
- the list of CvsRevision
s of this file,
from latest to oldestkeywordSubstitution
- the keyword substitution mode of this filefileManager
- The filemanager to use if the filecontent is requestedMethod Detail |
public java.lang.String getFullname()
public int getKeywordsubst()
public java.lang.String getWorkingname()
public java.lang.String getFilename()
public java.util.Vector getRevisionsPerUser(java.lang.String user)
user
- The user to get the revisions for.
public CvsRevision getLatestRevision()
public CvsRevision getInitialRevision()
public java.util.List getRevisions()
CvsRevision
s of this file.
public java.lang.String getModuleName()
public int getCurrentLinesOfCode()
public java.util.Iterator getRevisionIterator()
public boolean isDead()
true
if the latest revision has state dead.
True
, if this file is deleted in the repositorypublic boolean isBinary()
true
if the file is checked in as a binary file.
True
, if this file is a binary filepublic boolean hasUser(java.lang.String user)
user
worked on this file.
user
- The user
to search for
True
, if the user is listed in one of
this files revisionspublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |