|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.ant.svn.CommitRecordEntry
public class CommitRecordEntry
A record tracing the change of one file or one directory in an SVN commit. Note that the path may indication either a directory or a file. During a commit a path name can change, such as in the case of renaming.
If an item is newly created in the commit, then fromPath is null. If an item is deleted, then toPath is null.
Constructor Summary | |
---|---|
CommitRecordEntry(org.tmatesoft.svn.core.io.SVNRepository svnRepository,
java.lang.String fromPath,
long fromRevision,
java.lang.String toPath,
long toRevision)
Create this instance. |
Method Summary | |
---|---|
java.lang.String |
getFromPath()
Gets the from path. |
long |
getFromRevision()
Gets the from revision. |
int |
getLinesAdded()
Gets the number of lines added. |
int |
getLinesDeleted()
Gets the number of lines deleted. |
java.lang.String |
getToPath()
Gets the to path. |
long |
getToRevision()
Gets the to revision. |
int |
getTotalLines()
Gets the total number of lines for the toRevision. |
boolean |
isFile()
Checks whether this entry represents a file or not. |
boolean |
isTextFile()
Checks whether this entry represents a text file. |
java.lang.String |
toString()
Gets a string representation of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
CommitRecordEntry(org.tmatesoft.svn.core.io.SVNRepository svnRepository, java.lang.String fromPath, long fromRevision, java.lang.String toPath, long toRevision) throws java.lang.Exception
svnRepository
- SVN repository.fromPath
- The from path.fromRevision
- The from revision.toPath
- The to path.toRevision
- The to revision.
java.lang.Exception
- If both fromPath and toPath are null.Method Detail |
---|
public java.lang.String getFromPath()
public java.lang.String getToPath()
public long getFromRevision()
public boolean isFile() throws java.lang.Exception
java.lang.Exception
- If there is any error.public boolean isTextFile() throws java.lang.Exception
java.lang.Exception
- If there is any error.public long getToRevision()
public int getLinesAdded() throws java.lang.Exception
java.lang.Exception
- If this entry does not represent a text file, or if there
is any other error.public int getLinesDeleted() throws java.lang.Exception
java.lang.Exception
- If this entry does not represent text a file, or if there
is any other error.public int getTotalLines() throws java.lang.Exception
java.lang.Exception
- If this entry does not represent a text file, or if there
is any other error.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |