org.tmatesoft.svn.core
Class SVNLock
The SVNLock class represents a file lock. It holds
information on a lock path, token, owner, comment, creation
and expiration dates.
SVNLock(String path, String id, String owner, String comment, Date created, Date expires)-
Constructs an SVNLock object.
|
String | getComment()- Gets the lock comment.
|
Date | getCreationDate()- Gets the creation datestamp of this lock.
|
Date | getExpirationDate()- Gets the expiration datestamp of this lock.
|
String | getID()- Gets the lock token.
|
String | getOwner()- Gets the lock owner.
|
String | getPath()- Gets the path of the file for which this lock was created.
|
String | toString()- Returns a string representation of this object.
|
SVNLock
public SVNLock(String path,
String id,
String owner,
String comment,
Date created,
Date expires)
Constructs an SVNLock object.
path - a file path, relative to the repository root
directoryid - a string token identifying the lockowner - the owner of the lockcomment - a comment message for the lock (optional)created - a datestamp when the lock was createdexpires - a datestamp when the lock expires, i.e. the file is
unlocked (optional)
getComment
public String getComment()
Gets the lock comment.
getCreationDate
public Date getCreationDate()
Gets the creation datestamp of this lock.
- a datestamp representing the moment in
time when this lock was created
getExpirationDate
public Date getExpirationDate()
Gets the expiration datestamp of this lock.
- a datestamp representing the moment in time
when the this lock expires
getID
public String getID()
Gets the lock token.
- a unique string identifying this lock
getOwner
public String getOwner()
Gets the lock owner.
getPath
public String getPath()
Gets the path of the file for which this lock was created.
The path is relative to the repository root directory.
- the path of the locked file
toString
public String toString()
Returns a string representation of this object.
- a string representation of this lock object
Copyright © 2004-2006 TMate Software Ltd. All Rights Reserved.