|
JavaSVN Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tmatesoft.svn.core.wc.SVNInfo
The SVNInfo class is a wrapper for versioned item's (located either in a Working Copy or a repository) information details. When running an info operation invoking a doInfo() method of the SVNWCClient class all collected item information data is packed inside an SVNInfo object and depending on the exact doInfo() method being in use is either dispatched to an implementation of ISVNInfoHandler or just returned by the method (per single item info operation).
There are two approaches how to process SVNInfo objects:
1. Implementing an ISVNInfoHandler:
import org.tmatesoft.svn.core.wc.ISVNInfoHandler; import org.tmatesoft.svn.core.wc.SVNInfo; ... public class MyCustomInfoHandler implements ISVNInfoHandler { public void handleInfo(SVNInfo info) { //parsing info here ... } }
... import org.tmatesoft.svn.core.wc.SVNWCClient; ... SVNWCClient wcClient; ... wcClient.doInfo(...., new MyCustomInfoHandler()); ...
... SVNInfo info = wcClient.doInfo(new File(myPath), SVNRevision.WORKING); //parsing info here ...
ISVNInfoHandler
,
SVNWCClient
,
ExamplesConstructor Summary | |
protected |
SVNInfo(File file,
SVNURL url,
SVNURL rootURL,
long revision,
SVNNodeKind kind,
String uuid,
long committedRevision,
String committedDate,
String author,
String schedule,
SVNURL copyFromURL,
long copyFromRevision,
String textTime,
String propTime,
String checksum,
String conflictOld,
String conflictNew,
String conflictWorking,
String propRejectFile,
SVNLock lock)
|
protected |
SVNInfo(String path,
SVNURL url,
SVNRevision revision,
SVNNodeKind kind,
String uuid,
SVNURL reposRootURL,
long comittedRevision,
Date date,
String author,
SVNLock lock)
|
Method Summary | |
String |
getAuthor()
Gets the item's last commit author. |
String |
getChecksum()
Gets the file item's checksum. |
Date |
getCommittedDate()
Gets the item's last commit date. |
SVNRevision |
getCommittedRevision()
Gets the item's last committed revision. |
File |
getConflictNewFile()
Gets the temporary file that contains all latest changes from the repository which led to a conflict with local changes. |
File |
getConflictOldFile()
Gets the temporary BASE revision file of that working file that is currently in conflict with changes received from the repository. |
File |
getConflictWrkFile()
Gets the temporary '.mine' file with all current local changes to the original file. |
SVNRevision |
getCopyFromRevision()
Gets the revision of the item's ancestor from which the item was copied. |
SVNURL |
getCopyFromURL()
Gets the URL (repository location) of the ancestor from which the item was copied. |
File |
getFile()
Gets the item's local path. |
SVNNodeKind |
getKind()
Gets the item's node kind. |
SVNLock |
getLock()
Gets the file item's lock. |
String |
getPath()
Gets the item's path (relative to the repository root). |
File |
getPropConflictFile()
Gets the '.prej' file containing details on properties conflicts. |
Date |
getPropTime()
Gets the value of the item's SVNProperty.PROP_TIME property.
|
SVNURL |
getRepositoryRootURL()
Gets the repository root url (where the repository itself is installed). |
String |
getRepositoryUUID()
Gets the repository Universal Unique IDentifier (UUID). |
SVNRevision |
getRevision()
Gets the item's revision. |
String |
getSchedule()
Gets the item's schedule status. |
Date |
getTextTime()
Gets the value of the item's SVNProperty.TEXT_TIME
property. |
SVNURL |
getURL()
Gets the item's URL - its repository location. |
boolean |
isRemote()
Finds out whether the item for which this SVNInfo is generated is local (located in a user's Working Copy) or remote (located in a repository). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected SVNInfo(File file, SVNURL url, SVNURL rootURL, long revision, SVNNodeKind kind, String uuid, long committedRevision, String committedDate, String author, String schedule, SVNURL copyFromURL, long copyFromRevision, String textTime, String propTime, String checksum, String conflictOld, String conflictNew, String conflictWorking, String propRejectFile, SVNLock lock)
protected SVNInfo(String path, SVNURL url, SVNRevision revision, SVNNodeKind kind, String uuid, SVNURL reposRootURL, long comittedRevision, Date date, String author, SVNLock lock)
Method Detail |
public String getAuthor()
SVNProperty.LAST_AUTHOR
property.
public String getChecksum()
SVNProperty.CHECKSUM
property.
public Date getCommittedDate()
SVNProperty.COMMITTED_DATE
property.
public SVNRevision getCommittedRevision()
SVNProperty.COMMITTED_REVISION
property.
public File getConflictNewFile()
Taken from the item's SVNProperty.CONFLICT_NEW
property.
public File getConflictOldFile()
Taken from the item's SVNProperty.CONFLICT_OLD
property.
public File getConflictWrkFile()
Taken from the item's SVNProperty.CONFLICT_WRK
property.
public SVNRevision getCopyFromRevision()
SVNProperty.COPYFROM_REVISION
property)public SVNURL getCopyFromURL()
SVNProperty.COPYFROM_URL
property)public File getFile()
getPath()
instead.
public boolean isRemote()
SVNWCClient
's doInfo() method to use. Also
applicability of some methods of the SVNInfo class depends
on the item's location that can be determined calling this method.
public SVNNodeKind getKind()
public SVNLock getLock()
public String getPath()
getFile()
instead.
public File getPropConflictFile()
SVNProperty.PROP_REJECT_FILE
property.
public Date getPropTime()
SVNProperty.PROP_TIME
property.
It corresponds to the last time when properties were committed.
public SVNURL getRepositoryRootURL()
public String getRepositoryUUID()
SVNProperty.UUID
property.
public SVNRevision getRevision()
public String getSchedule()
public Date getTextTime()
SVNProperty.TEXT_TIME
property. It corresponds to the last commit time.
public SVNURL getURL()
|
JavaSVN Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |