|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tigris.subversion.javahl.Revision
public class Revision
Class to specify a revision in a svn command.
Nested Class Summary | |
---|---|
static class |
Revision.DateSpec
class to specify a revision by a date |
static class |
Revision.Kind
Various ways of specifying revisions. |
static class |
Revision.Number
class to specify a Revision by number |
Field Summary | |
---|---|
static Revision |
BASE
base revision of working copy |
static Revision |
COMMITTED
last committed revision, needs working copy |
static Revision |
HEAD
last committed revision |
static Revision |
PREVIOUS
previous committed revision, needs working copy |
protected int |
revKind
kind of revision specified |
static Revision |
START
first existing revision |
static int |
SVN_INVALID_REVNUM
Marker revision number for no real revision |
static Revision |
WORKING
working version in working copy |
Constructor Summary | |
---|---|
|
Revision(int kind)
Deprecated. |
protected |
Revision(int kind,
boolean marker)
Internally create a new revision |
Method Summary | |
---|---|
static Revision |
createFromApache(Revision aRev)
|
boolean |
equals(Object target)
compare to revision objects |
static Revision |
getInstance(Date revisionDate)
Creates a Revision.DateSpec objet |
static Revision |
getInstance(long revisionNumber)
Creates a Revision.Number object |
int |
getKind()
Returns the kind of the Revsion |
int |
hashCode()
|
Revision |
toApache()
|
String |
toString()
return the textual representation of the revision |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int revKind
public static final Revision HEAD
public static final Revision START
public static final Revision COMMITTED
public static final Revision PREVIOUS
public static final Revision BASE
public static final Revision WORKING
public static final int SVN_INVALID_REVNUM
Constructor Detail |
---|
public Revision(int kind)
kind
- kind of revisionprotected Revision(int kind, boolean marker)
kind
- kind of revisionmarker
- marker to differentiate from the public deprecated
versionMethod Detail |
---|
public int getKind()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object target)
equals
in class Object
target
-
public static Revision getInstance(long revisionNumber)
revisionNumber
- the revision number of the new object
IllegalArgumentException
- If the specified revision
number is invalid.public static Revision getInstance(Date revisionDate)
revisionDate
- the date of the new object
public Revision toApache()
public static Revision createFromApache(Revision aRev)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |