Java Doc for SVNInfo.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » wc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tmatesoft.svn.core.wc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.tmatesoft.svn.core.wc.SVNInfo

SVNInfo
public class SVNInfo (Code)
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 
 ...
 }
 }

...and providing an info handler implementation to an SVNWCClient's doInfo() method:
 ...
 import org.tmatesoft.svn.core.wc.SVNWCClient;
 ...
 SVNWCClient wcClient;
 ...
 wcClient.doInfo(...., new MyCustomInfoHandler());
 ...

2. Or process an SVNInfo like this:
 ...
 SVNInfo info = wcClient.doInfo(new File(myPath), SVNRevision.WORKING);
 //parsing info here
 ...


version:
   1.1.1
author:
   TMate Software Ltd.
See Also:   ISVNInfoHandler
See Also:   SVNWCClient
See Also:    Examples



Constructor 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
static  SVNInfocreateInfo(File file, SVNEntry entry)
    
static  SVNInfocreateInfo(String path, SVNURL reposRootURL, String uuid, SVNURL url, SVNRevision revision, SVNDirEntry dirEntry, SVNLock lock)
    
public  StringgetAuthor()
     Gets the item's last commit author.
public  StringgetChecksum()
     Gets the file item's checksum.
public  DategetCommittedDate()
     Gets the item's last commit date.
public  SVNRevisiongetCommittedRevision()
     Gets the item's last committed revision.
public  FilegetConflictNewFile()
     Gets the temporary file that contains all latest changes from the repository which led to a conflict with local changes.
public  FilegetConflictOldFile()
     Gets the temporary BASE revision file of that working file that is currently in conflict with changes received from the repository.
public  FilegetConflictWrkFile()
     Gets the temporary '.mine' file with all current local changes to the original file.
public  SVNRevisiongetCopyFromRevision()
     Gets the revision of the item's ancestor from which the item was copied.
public  SVNURLgetCopyFromURL()
     Gets the URL (repository location) of the ancestor from which the item was copied.
public  FilegetFile()
     Gets the item's local path.
public  SVNNodeKindgetKind()
     Gets the item's node kind.
public  SVNLockgetLock()
     Gets the file item's lock.
public  StringgetPath()
     Gets the item's path (relative to the repository root).
public  FilegetPropConflictFile()
     Gets the '.prej' file containing details on properties conflicts. If the item's properties are in conflict with those that came during an update this file will contain a conflict description.
public  DategetPropTime()
     Gets the value of the item's org.tmatesoft.svn.core.SVNProperty.PROP_TIME property.
public  SVNURLgetRepositoryRootURL()
     Gets the repository root url (where the repository itself is installed).
public  StringgetRepositoryUUID()
     Gets the repository Universal Unique IDentifier (UUID).
public  SVNRevisiongetRevision()
     Gets the item's revision.
public  StringgetSchedule()
     Gets the item's schedule status.
public  DategetTextTime()
     Gets the value of the item's org.tmatesoft.svn.core.SVNProperty.TEXT_TIME property.
public  SVNURLgetURL()
     Gets the item's URL - its repository location.
public  booleanisRemote()
     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).


Constructor Detail
SVNInfo
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)(Code)



SVNInfo
protected SVNInfo(String path, SVNURL url, SVNRevision revision, SVNNodeKind kind, String uuid, SVNURL reposRootURL, long comittedRevision, Date date, String author, SVNLock lock)(Code)




Method Detail
createInfo
static SVNInfo createInfo(File file, SVNEntry entry) throws SVNException(Code)



createInfo
static SVNInfo createInfo(String path, SVNURL reposRootURL, String uuid, SVNURL url, SVNRevision revision, SVNDirEntry dirEntry, SVNLock lock)(Code)



getAuthor
public String getAuthor()(Code)
Gets the item's last commit author. This is the value of the item's org.tmatesoft.svn.core.SVNProperty.LAST_AUTHOR property. the author who last changed (committed) the item



getChecksum
public String getChecksum()(Code)
Gets the file item's checksum. This is the value of the file item's org.tmatesoft.svn.core.SVNProperty.CHECKSUM property. the file item's checksum



getCommittedDate
public Date getCommittedDate()(Code)
Gets the item's last commit date. This is the value of the item's org.tmatesoft.svn.core.SVNProperty.COMMITTED_DATE property. the item's last commit date



getCommittedRevision
public SVNRevision getCommittedRevision()(Code)
Gets the item's last committed revision. This is the value of the item's org.tmatesoft.svn.core.SVNProperty.COMMITTED_REVISION property. the item's last committed revision.



getConflictNewFile
public File getConflictNewFile()(Code)
Gets the temporary file that contains all latest changes from the repository which led to a conflict with local changes. This file is at the HEAD revision.

Taken from the item's org.tmatesoft.svn.core.SVNProperty.CONFLICT_NEW property. an autogenerated temporary file just as it is in the latest revision in the repository




getConflictOldFile
public File getConflictOldFile()(Code)
Gets the temporary BASE revision file of that working file that is currently in conflict with changes received from the repository. This file does not contain the latest user's modifications, only 'pristine' contents.

Taken from the item's org.tmatesoft.svn.core.SVNProperty.CONFLICT_OLD property. an autogenerated temporary file just as the conflicting file wasbefore any modifications to it




getConflictWrkFile
public File getConflictWrkFile()(Code)
Gets the temporary '.mine' file with all current local changes to the original file. That is if the file item is in conflict with changes that came during an update this temporary file is created to get the snapshot of the user's file with only the user's local modifications and nothing more.

Taken from the item's org.tmatesoft.svn.core.SVNProperty.CONFLICT_WRK property. an autogenerated temporary file with only the user's modifications




getCopyFromRevision
public SVNRevision getCopyFromRevision()(Code)
Gets the revision of the item's ancestor from which the item was copied. the ancestor's revision (taken from the org.tmatesoft.svn.core.SVNProperty.COPYFROM_REVISION property)



getCopyFromURL
public SVNURL getCopyFromURL()(Code)
Gets the URL (repository location) of the ancestor from which the item was copied. the item ancestor's URL (taken from the org.tmatesoft.svn.core.SVNProperty.COPYFROM_URL property)



getFile
public File getFile()(Code)
Gets the item's local path. Applicable for local info operation invocations, however if an info operation is invoked for remote items, use SVNInfo.getPath() instead. the item's local path



getKind
public SVNNodeKind getKind()(Code)
Gets the item's node kind. Used to find out whether the item is a file, directory, etc. the item's node kind



getLock
public SVNLock getLock()(Code)
Gets the file item's lock. Used to get lock information - lock token, comment, etc. the file item's lock.



getPath
public String getPath()(Code)
Gets the item's path (relative to the repository root). Applicable for remote info operation invocations, however if an info operation is invoked for Working Copy items, use SVNInfo.getFile() instead. the item's path in the repository



getPropConflictFile
public File getPropConflictFile()(Code)
Gets the '.prej' file containing details on properties conflicts. If the item's properties are in conflict with those that came during an update this file will contain a conflict description. This is the value of the item's org.tmatesoft.svn.core.SVNProperty.PROP_REJECT_FILE property. the properties conflicts file



getPropTime
public Date getPropTime()(Code)
Gets the value of the item's org.tmatesoft.svn.core.SVNProperty.PROP_TIME property. It corresponds to the last time when properties were committed. the value of the item's prop-time property



getRepositoryRootURL
public SVNURL getRepositoryRootURL()(Code)
Gets the repository root url (where the repository itself is installed). Applicable only for remote info operation invocations (for items in a repository). the repository's root URL



getRepositoryUUID
public String getRepositoryUUID()(Code)
Gets the repository Universal Unique IDentifier (UUID). This is the value of the org.tmatesoft.svn.core.SVNProperty.UUID property. the repository UUID



getRevision
public SVNRevision getRevision()(Code)
Gets the item's revision. the item's revision



getSchedule
public String getSchedule()(Code)
Gets the item's schedule status. Schedule status is inapplicable when running a remote info operation (for items in a repository). If it's a local info operation and the return value is null then it corresponds to the SVN's 'normal' schedule status. the item's schedule status



getTextTime
public Date getTextTime()(Code)
Gets the value of the item's org.tmatesoft.svn.core.SVNProperty.TEXT_TIME property. It corresponds to the last commit time. the value of the item's text-time property



getURL
public SVNURL getURL()(Code)
Gets the item's URL - its repository location. the item's URL



isRemote
public boolean isRemote()(Code)
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). It depends on the type of an info operation to perform - that is on an 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. true if the item is locatedin a repository, otherwise falseand the item is in a Working Copy



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.