|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.io.SVNFileRevision
public class 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(java.lang.String path,
long revision,
SVNProperties properties,
SVNProperties propertiesDelta)
Constructs an instance of SVNFileRevision. |
|
SVNFileRevision(java.lang.String path,
long revision,
SVNProperties properties,
SVNProperties propertiesDelta,
boolean isResultOfMerge)
Constructs an instance of SVNFileRevision. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with another one. |
java.lang.String |
getPath()
Gets the file path (relative to a repository root URL). |
SVNProperties |
getProperties()
Deprecated. use getRevisionProperties() instead |
SVNProperties |
getPropertiesDelta()
Returns file properties for this file (for this revision). |
long |
getRevision()
Gets the revision of the file. |
SVNProperties |
getRevisionProperties()
Returns revision properties. |
boolean |
isResultOfMerge()
Tells whether this file revision is the result of a merge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVNFileRevision(java.lang.String path, long revision, SVNProperties properties, SVNProperties 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
public SVNFileRevision(java.lang.String path, long revision, SVNProperties properties, SVNProperties propertiesDelta, boolean isResultOfMerge)
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
isResultOfMerge
- whether this revision of the file is the result of a mergeMethod Detail |
---|
public java.lang.String getPath()
SVNRepository
public SVNProperties getProperties()
getRevisionProperties()
instead
SVNRevisionProperty
constants (they are revision property names) to retrieve values of the
corresponding properties.
public SVNProperties getRevisionProperties()
SVNRevisionProperty
constants (they are revision property names) to retrieve values of the
corresponding properties.
public SVNProperties getPropertiesDelta()
public long getRevision()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.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)
public boolean isResultOfMerge()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |