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

SVNEventAction
public class SVNEventAction (Code)
The SVNEventAction class is used to describe an action which generated an SVNEvent object.

Each operation invoked by a do*() method of an SVN*Client class consists of several actions that can be considered as operation steps. For example, an update operation receives changes for files, adds new ones, deletes another ones and so on. And for every such action (for every file updated, deleted, added, etc.) the SVNUpdateClient.doUpdate(FileSVNRevisionboolean) doUpdate() method generates an SVNEvent objects which contains information on the type of this action that can be retrieved simply calling the SVNEvent's SVNEvent.getAction getAction() method:

 import org.tmatesoft.svn.core.wc.SVNEvent;
 import org.tmatesoft.svn.core.wc.SVNEventAction;
 ...
 SVNEventAction action = event.getAction();
 //parse the action according to the type of 
 //operation and your needs
 if (action == SVNEventAction.UPDATE_UPDATE){
 ...
 }
 ...

SVNEventAction is just a set of predefined constant fields of the same type. Each constant is applicable only to a certain type of operation - for example those constants that names start with the UPDATE_ prefix are relevant only for update related operations (update, checkout, switch, etc.).
version:
   1.1.1
author:
   TMate Software Ltd.
See Also:   SVNEvent
See Also:   ISVNEventHandler
See Also:    Examples



Field Summary
final public static  SVNEventActionADD
     Denotes that a new item is scheduled for addition.
final public static  SVNEventActionANNOTATE
     Denotes that file blaming is started.
final public static  SVNEventActionCOMMIT_ADDED
     In a commit operation denotes adding a new item to the repository.
final public static  SVNEventActionCOMMIT_COMPLETED
     In a commit operation denotes that the operation itself is completed (for instance, in a console client can be used to print out the commited revsion).
final public static  SVNEventActionCOMMIT_DELETED
     In a commit operation denotes deleting the item from the repository.
final public static  SVNEventActionCOMMIT_DELTA_SENT
     In a commit operation denotes the final stage of the operation - sending all file data and finalizing the commit.
final public static  SVNEventActionCOMMIT_MODIFIED
     In a commit operation denotes sending the item's modifications to the repository.
final public static  SVNEventActionCOMMIT_REPLACED
     In a commit operation denotes replacing (one item was deleted while another one with the same name was added) the item in the repository.
final public static  SVNEventActionCOPY
     Denotes that the item is copied with history.
final public static  SVNEventActionDELETE
     Denotes that the item is scheduled for deletion.
final public static  SVNEventActionFAILED_REVERT
     Denotes that a revert operation failed.
final public static  SVNEventActionLOCKED
     Denotes that the file item is locked as a result of a locking operation.
final public static  SVNEventActionLOCK_FAILED
     Denotes that locking a file item failed.
final public static  SVNEventActionPROGRESS
     Reserved for future purposes.
final public static  SVNEventActionRESOLVED
     Denotes that the conflict on the item is resolved (the item is marked resolved).
final public static  SVNEventActionRESTORE
     Denotes that the deleted item is restored (prior to be updated).
final public static  SVNEventActionREVERT
     Denotes that all local changes to the item were reverted.
final public static  SVNEventActionSKIP
     Denotes that the operation is skipped due to errors (inability to be performed, etc.).
final public static  SVNEventActionSTATUS_COMPLETED
     In a remote status operation denotes that the operation itself is completed - used to get the latest repository revision against which the status was invoked.
final public static  SVNEventActionSTATUS_EXTERNAL
     In a status operation denotes that the status is performed on an external item.
final public static  SVNEventActionUNLOCKED
     Denotes that the file item is unlocked as a result of an unlocking operation.
final public static  SVNEventActionUNLOCK_FAILED
     Denotes that unlocking a file item failed.
final public static  SVNEventActionUPDATE_ADD
     In an update operation denotes that the item is added to the Working Copy (as it was added in the repository).
final public static  SVNEventActionUPDATE_COMPLETED
     In an update operation denotes that the operation itself is completed (for instance, in a console client can be used to print out the revision updated to).
final public static  SVNEventActionUPDATE_DELETE
     In an update operation denotes that the item is deleted from the Working Copy (as it was deleted in the repository).
final public static  SVNEventActionUPDATE_EXTERNAL
     In an update operation denotes that the item being updated is external.
final public static  SVNEventActionUPDATE_NONE
     In an update operation denotes that the item is not modified, but its children are.
final public static  SVNEventActionUPDATE_UPDATE
     In an update operation denotes that the item is modified (there are changes received from the repository).
final public static  SVNEventActionUPGRADE
     Denotes that the current format of the working copy administrative area is upgraded to a newer one.


Method Summary
public  intgetID()
     Returns this object's identifier. Each constant field of the SVNEventAction class is also an SVNEventAction object with its own id.
public  StringtoString()
     Returns a string representation of this object.

Field Detail
ADD
final public static SVNEventAction ADD(Code)
Denotes that a new item is scheduled for addition. Generated by the SVNWCClient.doAdd(Filebooleanbooleanbooleanboolean)doAdd() method.



ANNOTATE
final public static SVNEventAction ANNOTATE(Code)
Denotes that file blaming is started.



COMMIT_ADDED
final public static SVNEventAction COMMIT_ADDED(Code)
In a commit operation denotes adding a new item to the repository.



COMMIT_COMPLETED
final public static SVNEventAction COMMIT_COMPLETED(Code)
In a commit operation denotes that the operation itself is completed (for instance, in a console client can be used to print out the commited revsion).



COMMIT_DELETED
final public static SVNEventAction COMMIT_DELETED(Code)
In a commit operation denotes deleting the item from the repository.



COMMIT_DELTA_SENT
final public static SVNEventAction COMMIT_DELTA_SENT(Code)
In a commit operation denotes the final stage of the operation - sending all file data and finalizing the commit.



COMMIT_MODIFIED
final public static SVNEventAction COMMIT_MODIFIED(Code)
In a commit operation denotes sending the item's modifications to the repository.



COMMIT_REPLACED
final public static SVNEventAction COMMIT_REPLACED(Code)
In a commit operation denotes replacing (one item was deleted while another one with the same name was added) the item in the repository.



COPY
final public static SVNEventAction COPY(Code)
Denotes that the item is copied with history.
See Also:   SVNCopyClient



DELETE
final public static SVNEventAction DELETE(Code)
Denotes that the item is scheduled for deletion. Generated by the SVNWCClient.doDelete(Filebooleanboolean) doDelete() method.



FAILED_REVERT
final public static SVNEventAction FAILED_REVERT(Code)
Denotes that a revert operation failed. Generated by the SVNWCClient.doRevert(Fileboolean) method.



LOCKED
final public static SVNEventAction LOCKED(Code)
Denotes that the file item is locked as a result of a locking operation. Generated by a doLock() method of SVNWCClient .



LOCK_FAILED
final public static SVNEventAction LOCK_FAILED(Code)
Denotes that locking a file item failed. Generated by a doLock() method of SVNWCClient .



PROGRESS
final public static SVNEventAction PROGRESS(Code)
Reserved for future purposes.



RESOLVED
final public static SVNEventAction RESOLVED(Code)
Denotes that the conflict on the item is resolved (the item is marked resolved). Such an event is generated by the SVNWCClient.doResolve(Fileboolean) doResolve() method.



RESTORE
final public static SVNEventAction RESTORE(Code)
Denotes that the deleted item is restored (prior to be updated).



REVERT
final public static SVNEventAction REVERT(Code)
Denotes that all local changes to the item were reverted. Generated by the SVNWCClient.doRevert(Fileboolean) method.



SKIP
final public static SVNEventAction SKIP(Code)
Denotes that the operation is skipped due to errors (inability to be performed, etc.).



STATUS_COMPLETED
final public static SVNEventAction STATUS_COMPLETED(Code)
In a remote status operation denotes that the operation itself is completed - used to get the latest repository revision against which the status was invoked.



STATUS_EXTERNAL
final public static SVNEventAction STATUS_EXTERNAL(Code)
In a status operation denotes that the status is performed on an external item. To find out the item's current status use SVNEvent.getContentsStatus getContentsStatus() , SVNEvent.getPropertiesStatus getPropertiesStatus() . The SVNStatusType.STATUS_EXTERNAL constant says only that the item belongs to externals definitions.



UNLOCKED
final public static SVNEventAction UNLOCKED(Code)
Denotes that the file item is unlocked as a result of an unlocking operation. Generated by a doUnlock() method of SVNWCClient .



UNLOCK_FAILED
final public static SVNEventAction UNLOCK_FAILED(Code)
Denotes that unlocking a file item failed. Generated by a doUnlock() method of SVNWCClient .



UPDATE_ADD
final public static SVNEventAction UPDATE_ADD(Code)
In an update operation denotes that the item is added to the Working Copy (as it was added in the repository).



UPDATE_COMPLETED
final public static SVNEventAction UPDATE_COMPLETED(Code)
In an update operation denotes that the operation itself is completed (for instance, in a console client can be used to print out the revision updated to).



UPDATE_DELETE
final public static SVNEventAction UPDATE_DELETE(Code)
In an update operation denotes that the item is deleted from the Working Copy (as it was deleted in the repository).



UPDATE_EXTERNAL
final public static SVNEventAction UPDATE_EXTERNAL(Code)
In an update operation denotes that the item being updated is external.



UPDATE_NONE
final public static SVNEventAction UPDATE_NONE(Code)
In an update operation denotes that the item is not modified, but its children are.



UPDATE_UPDATE
final public static SVNEventAction UPDATE_UPDATE(Code)
In an update operation denotes that the item is modified (there are changes received from the repository).



UPGRADE
final public static SVNEventAction UPGRADE(Code)
Denotes that the current format of the working copy administrative area is upgraded to a newer one.





Method Detail
getID
public int getID()(Code)
Returns this object's identifier. Each constant field of the SVNEventAction class is also an SVNEventAction object with its own id. id of this object



toString
public String toString()(Code)
Returns a string representation of this object. As a matter of fact this is a string representation of this object's id. 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.