|
SVNKit Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tmatesoft.svn.core.io.SVNFileRevision
The SVNFileRevision class represents information on what path a file is located at (in a repository) in a particular revision, contains file properties and revision properties for that revision.
When getting a range of file revisions (in particular, annotating),
calling an SVNRepository's
getFileRevision()
SVNFileRevision objects are passed to an ISVNFileRevisionHandler's openRevision()
method.
SVNRepository
,
ISVNFileRevisionHandler
Constructor Summary | |
SVNFileRevision(String path,
long revision,
Map properties,
Map propertiesDelta)
Constructs an instance of SVNFileRevision. |
Method Summary | |
int |
compareTo(Object o)
Compares this object with another one. |
String |
getPath()
Gets the file path (relative to a repository root URL). |
Map |
getProperties()
Deprecated. use getRevisionProperties() instead |
Map |
getPropertiesDelta()
Returns file properties for this file (for this revision). |
long |
getRevision()
Gets the revision of the file. |
Map |
getRevisionProperties()
Returns revision properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SVNFileRevision(String path, long revision, Map properties, Map propertiesDelta)
path
- a file path relative to a repository location
(a URL used to create an
SVNRepository to access a repository)revision
- a revision of the fileproperties
- revision propertiespropertiesDelta
- file properties for the revision
Method Detail |
public String getPath()
SVNRepository
public Map getProperties()
getRevisionProperties()
instead
SVNRevisionProperty
constants (they are revision property names) to retrieve values of the
corresponding properties.
public Map getRevisionProperties()
SVNRevisionProperty
constants (they are revision property names) to retrieve values of the
corresponding properties.
public Map getPropertiesDelta()
public long getRevision()
public int compareTo(Object o)
compareTo
in interface Comparable
o
- an object to compare with
o
is either null,
or is not an instance of SVNFileRevision, or the revision value of
this object is bigger than the one of o
;
o
;
o
are the same (equal)
|
SVNKit Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |