Java Doc for SVNRevision.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.SVNRevision

SVNRevision
public class SVNRevision (Code)
SVNRevision is a revision wrapper used for an abstract representation of revision information.

Most of high-level API classes' methods receive revision parameters as SVNRevision objects to get information on SVN revisions and use it in version control operations.

This class provides advantages of specifying revisions either as just long numbers or dated revisions (when a revision is determined according to a particular timestamp) or SVN compatible keywords denoting the latest revision (HEAD), Working Copy pristine revision (BASE) and so on. And one more feature is that SVNRevision can parse strings (that can be anything: string representations of numbers, dates, keywords) to construct an SVNRevision to use.
version:
   1.1.1
author:
   TMate Software Ltd.



Field Summary
final public static  SVNRevisionBASE
     Denotes the 'pristine' revision of a Working Copy item.
final public static  SVNRevisionCOMMITTED
     Denotes the last revision in which an item was changed before (or at) BASE.
final public static  SVNRevisionHEAD
     Denotes the latest repository revision.
final public static  SVNRevisionPREVIOUS
     Denotes the revision just before the one when an item was last changed (technically, COMMITTED - 1).
final public static  SVNRevisionUNDEFINED
     Used to denote that a revision is undefined (not available or not valid).
final public static  SVNRevisionWORKING
     Denotes an item's working (current) revision.


Method Summary
public static  SVNRevisioncreate(long revisionNumber)
     Creates an SVNRevision object given a revision number.
public static  SVNRevisioncreate(Date date)
     Creates an SVNRevision object given a particular timestamp.
public  booleanequals(Object o)
     Compares this object with another SVNRevision object.
public  DategetDate()
     Gets the timestamp used to specify a revision.
public  intgetID()
     Gets the identifier of the revision information kind this object represents.
public  StringgetName()
     Gets the revision keyword name.
public  longgetNumber()
     Gets the revision number represented by this object.
public  inthashCode()
     Evaluates the hash code for this object.
public  booleanisLocal()
     Determines if the revision represented by this abstract object is Working Copy specific - that is one of SVNRevision.BASE or SVNRevision.WORKING .
public  booleanisValid()
     Checks if the revision information represented by this object is valid.

SVNRevision.UNDEFINED is not a valid revision.

public static  booleanisValidRevisionNumber(long revision)
     Checks whether a revision number is valid.
public static  SVNRevisionparse(String value)
     Parses an input string and be it a representation of either a revision number, or a timestamp, or a revision keyword, constructs an SVNRevision representation of the revision.
public  StringtoString()
     Gives a string representation of this object.

Field Detail
BASE
final public static SVNRevision BASE(Code)
Denotes the 'pristine' revision of a Working Copy item. SVN's analogue keyword: BASE.



COMMITTED
final public static SVNRevision COMMITTED(Code)
Denotes the last revision in which an item was changed before (or at) BASE. SVN's analogue keyword: COMMITTED.



HEAD
final public static SVNRevision HEAD(Code)
Denotes the latest repository revision. SVN's analogue keyword: HEAD.



PREVIOUS
final public static SVNRevision PREVIOUS(Code)
Denotes the revision just before the one when an item was last changed (technically, COMMITTED - 1). SVN's analogue keyword: PREV.



UNDEFINED
final public static SVNRevision UNDEFINED(Code)
Used to denote that a revision is undefined (not available or not valid).



WORKING
final public static SVNRevision WORKING(Code)
Denotes an item's working (current) revision. This is a SVNKit constant that should be provided to mean working revisions (what the native SVN client assumes by default).





Method Detail
create
public static SVNRevision create(long revisionNumber)(Code)
Creates an SVNRevision object given a revision number.
Parameters:
  revisionNumber - a definite revision number the constructed SVNRevision object



create
public static SVNRevision create(Date date)(Code)
Creates an SVNRevision object given a particular timestamp.
Parameters:
  date - a timestamp represented as a Date instance the constructed SVNRevision object



equals
public boolean equals(Object o)(Code)
Compares this object with another SVNRevision object.
Parameters:
  o - an object to be compared with; if it's not an SVNRevision then this method certainly returnsfalse true if equal, otherwisefalse



getDate
public Date getDate()(Code)
Gets the timestamp used to specify a revision. a timestamp if any specified for this object



getID
public int getID()(Code)
Gets the identifier of the revision information kind this object represents. this object's id



getName
public String getName()(Code)
Gets the revision keyword name. Each of SVNRevision's constant fields that represent revision keywords also have its own name. a revision keyword name



getNumber
public long getNumber()(Code)
Gets the revision number represented by this object. a revision number; -1 is returned when this object represents a revision information not using a revision number.



hashCode
public int hashCode()(Code)
Evaluates the hash code for this object. A hash code is evaluated in this way:
  • if this object represents revision info as a revision number then hash code = (int) revisionNumber & 0xFFFFFFFF;
  • if this object represents revision info as a timestamp then java.util.Date.hashCode is used;
  • if this object represents revision info as a keyword then java.lang.String.hashCode is used for the keyword name;
this object's hash code



isLocal
public boolean isLocal()(Code)
Determines if the revision represented by this abstract object is Working Copy specific - that is one of SVNRevision.BASE or SVNRevision.WORKING . true if this object represents a kind of a local revision, otherwise false



isValid
public boolean isValid()(Code)
Checks if the revision information represented by this object is valid.

SVNRevision.UNDEFINED is not a valid revision. true if valid, otherwisefalse




isValidRevisionNumber
public static boolean isValidRevisionNumber(long revision)(Code)
Checks whether a revision number is valid.
Parameters:
  revision - a revision number true if valid, otherwise false



parse
public static SVNRevision parse(String value)(Code)
Parses an input string and be it a representation of either a revision number, or a timestamp, or a revision keyword, constructs an SVNRevision representation of the revision.
Parameters:
  value - a string to be parsed an SVNRevision object that holds the revisioninformation parsed from value; howeverif an input string is not a valid one which can besuccessfully transformed to an SVNRevision thereturn value is SVNRevision.UNDEFINED



toString
public String toString()(Code)
Gives a string representation of this object. a string representing this object



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.