Package org.tigris.subversion.javahl
Class LogMessage
java.lang.Object
org.tigris.subversion.javahl.LogMessage
- All Implemented Interfaces:
java.io.Serializable
public class LogMessage
extends java.lang.Object
implements java.io.Serializable
This class describes a single subversion revision with log message,
author and date.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.lang.StringThe author of the commit.private ChangePath[]The items changed by this commit (only set when SVNClientInterface.logMessages is used with discoverPaths true).private java.util.DateThe date of the commit.private java.lang.StringThe log message for the revision.private longThe number of the revision.private static final longprivate longThe time of the commit measured in the number of microseconds since 00:00:00 January 1, 1970 UTC. -
Constructor Summary
ConstructorsConstructorDescriptionLogMessage(ChangePath[] cp, long r, java.lang.String a, long t, java.lang.String m) This constructor is only called only from the thin wrapper.LogMessage(ChangePath[] cp, long r, java.lang.String a, java.util.Date d, java.lang.String m) Deprecated.Use the constructor that takes the number of microseconds since 00:00:00 January 1, 1970 UTC -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.StringReturns the author of the commitReturns the changes items by this commitjava.util.DategetDate()Returns the date of the commitjava.lang.StringReturn the log message textReturns the revision as a Revision objectlongReturns the revision as a long integerlongReturns the time of the commitlongReturns the time of the commitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
message
private java.lang.String messageThe log message for the revision. -
timeMicros
private long timeMicrosThe time of the commit measured in the number of microseconds since 00:00:00 January 1, 1970 UTC. -
date
private java.util.Date dateThe date of the commit. -
revision
private long revisionThe number of the revision. -
author
private java.lang.String authorThe author of the commit. -
changedPaths
The items changed by this commit (only set when SVNClientInterface.logMessages is used with discoverPaths true).
-
-
Constructor Details
-
LogMessage
LogMessage(ChangePath[] cp, long r, java.lang.String a, java.util.Date d, java.lang.String m) Deprecated.Use the constructor that takes the number of microseconds since 00:00:00 January 1, 1970 UTCThis constructor is the original constructor from Subversion 1.4 and older.- Parameters:
changedPaths- the items changed by this commitrevision- the number of the revisionauthor- the author of the commitdate- the date of the commitmessage- the log message text
-
LogMessage
LogMessage(ChangePath[] cp, long r, java.lang.String a, long t, java.lang.String m) This constructor is only called only from the thin wrapper.- Parameters:
changedPaths- the items changed by this commitrevision- the number of the revisionauthor- the author of the committimeMicros- the time of the commit measured in the number of microseconds since 00:00:00 January 1, 1970 UTCmessage- the log message text- Since:
- 1.5
-
-
Method Details
-
getMessage
public java.lang.String getMessage()Return the log message text- Returns:
- the log message text
-
getTimeMicros
public long getTimeMicros()Returns the time of the commit- Returns:
- the time of the commit measured in the number of microseconds since 00:00:00 January 1, 1970 UTC
- Since:
- 1.5
-
getTimeMillis
public long getTimeMillis()Returns the time of the commit- Returns:
- the time of the commit measured in the number of milliseconds since 00:00:00 January 1, 1970 UTC
- Since:
- 1.5
-
getDate
public java.util.Date getDate()Returns the date of the commit- Returns:
- the date of the commit
-
getRevision
Returns the revision as a Revision object- Returns:
- the revision number as a Revision object
-
getRevisionNumber
public long getRevisionNumber()Returns the revision as a long integer- Returns:
- the revision number as a long integer
-
getAuthor
public java.lang.String getAuthor()Returns the author of the commit- Returns:
- the author of the commit
-
getChangedPaths
Returns the changes items by this commit- Returns:
- the changes items by this commit
-