|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc.SVNEventAction
public class SVNEventAction
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
doUpdate()
method generates an SVNEvent objects which contains information
on the type of this action that can be retrieved simply calling
the SVNEvent's 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.).
SVNEvent
,
ISVNEventHandler
,
ExamplesField Summary | |
---|---|
static SVNEventAction |
ADD
Denotes that a new item is scheduled for addition. |
static SVNEventAction |
ANNOTATE
Denotes that file blaming is started. |
static SVNEventAction |
CHANGELIST_CLEAR
Denotes that changelist name is cleared. |
static SVNEventAction |
CHANGELIST_MOVED
Denotes that a path has moved from one changelist to another. |
static SVNEventAction |
CHANGELIST_SET
Denotes that changelist name is set. |
static SVNEventAction |
COMMIT_ADDED
In a commit operation denotes adding a new item to the repository. |
static SVNEventAction |
COMMIT_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 committed revision). |
static SVNEventAction |
COMMIT_DELETED
In a commit operation denotes deleting the item from the repository. |
static SVNEventAction |
COMMIT_DELTA_SENT
In a commit operation denotes the final stage of the operation - sending all file data and finalizing the commit. |
static SVNEventAction |
COMMIT_MODIFIED
In a commit operation denotes sending the item's modifications to the repository. |
static SVNEventAction |
COMMIT_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. |
static SVNEventAction |
COPY
Denotes that the item is copied with history. |
static SVNEventAction |
DELETE
Denotes that the item is scheduled for deletion. |
static SVNEventAction |
FAILED_EXTERNAL
|
static SVNEventAction |
FAILED_FORBIDDEN_BY_SERVER
|
static SVNEventAction |
FAILED_LOCKED
|
static SVNEventAction |
FAILED_OUT_OF_DATE
|
static SVNEventAction |
FAILED_REVERT
Denotes that a revert operation failed. |
static SVNEventAction |
FOREIGN_MERGE_BEGIN
Denotes that a merge operation (to path) from a foreign repository has begun. |
static SVNEventAction |
LOCK_FAILED
Denotes that locking a file item failed. |
static SVNEventAction |
LOCKED
Denotes that the file item is locked as a result of a locking operation. |
static SVNEventAction |
MERGE_BEGIN
Denotes that a merge operation (to path) has begun. |
static SVNEventAction |
MERGE_COMPLETE
|
static SVNEventAction |
MERGE_ELIDE_INFO
|
static SVNEventAction |
MERGE_RECORD_INFO
|
static SVNEventAction |
MERGE_RECORD_INFO_BEGIN
|
static SVNEventAction |
PATCH
|
static SVNEventAction |
PATCH_APPLIED_HUNK
|
static SVNEventAction |
PATCH_REJECTED_HUNK
|
static SVNEventAction |
PATH_NONEXISTENT
|
static SVNEventAction |
PROGRESS
Reserved for future purposes. |
static SVNEventAction |
PROPERTY_ADD
|
static SVNEventAction |
PROPERTY_DELETE
|
static SVNEventAction |
PROPERTY_DELETE_NONEXISTENT
|
static SVNEventAction |
PROPERTY_MODIFY
|
static SVNEventAction |
RESOLVED
Denotes that the conflict on the item is resolved (the item is marked resolved). |
static SVNEventAction |
RESTORE
Denotes that the deleted item is restored (prior to be updated). |
static SVNEventAction |
REVERT
Denotes that all local changes to the item were reverted. |
static SVNEventAction |
REVPROP_DELETE
|
static SVNEventAction |
REVPROPER_SET
|
static SVNEventAction |
SKIP
Denotes that the operation is skipped due to errors (inability to be performed, etc.). |
static SVNEventAction |
SKIP_CONFLICTED
|
static SVNEventAction |
STATUS_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. |
static SVNEventAction |
STATUS_EXTERNAL
In a status operation denotes that the status is performed on an external item. |
static SVNEventAction |
TREE_CONFLICT
|
static SVNEventAction |
UNLOCK_FAILED
Denotes that unlocking a file item failed. |
static SVNEventAction |
UNLOCKED
Denotes that the file item is unlocked as a result of an unlocking operation. |
static SVNEventAction |
UPDATE_ADD
In an update operation denotes that the item is added to the Working Copy (as it was added in the repository). |
static SVNEventAction |
UPDATE_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). |
static SVNEventAction |
UPDATE_DELETE
In an update operation denotes that the item is deleted from the Working Copy (as it was deleted in the repository). |
static SVNEventAction |
UPDATE_EXISTS
Denotes that tried adding a path that already exists. |
static SVNEventAction |
UPDATE_EXTERNAL
In an update operation denotes that the item being updated is external. |
static SVNEventAction |
UPDATE_EXTERNAL_REMOVED
|
static SVNEventAction |
UPDATE_NONE
In an update operation denotes that the item is not modified, but its children are. |
static SVNEventAction |
UPDATE_REPLACE
Denotes a replace notification. |
static SVNEventAction |
UPDATE_SHADOWED_ADD
|
static SVNEventAction |
UPDATE_SHADOWED_DELETE
|
static SVNEventAction |
UPDATE_SHADOWED_UPDATE
|
static SVNEventAction |
UPDATE_SKIP_ACCESS_DENINED
|
static SVNEventAction |
UPDATE_SKIP_OBSTRUCTION
|
static SVNEventAction |
UPDATE_SKIP_WORKING_ONLY
|
static SVNEventAction |
UPDATE_STARTED
|
static SVNEventAction |
UPDATE_UPDATE
In an update operation denotes that the item is modified (there are changes received from the repository). |
static SVNEventAction |
UPGRADE
Denotes that the current format of the working copy administrative area is upgraded to a newer one. |
static SVNEventAction |
UPGRADED_PATH
An working copy directory was upgraded to the latest format |
Method Summary | |
---|---|
int |
getID()
Returns this object's identifier. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SVNEventAction PROGRESS
public static final SVNEventAction ADD
doAdd()
method.
public static final SVNEventAction COPY
SVNCopyClient
public static final SVNEventAction DELETE
doDelete()
method.
public static final SVNEventAction RESTORE
public static final SVNEventAction REVERT
doRevert()
method.
public static final SVNEventAction FAILED_REVERT
doRevert()
method.
public static final SVNEventAction RESOLVED
doResolve()
method.
public static final SVNEventAction SKIP
public static final SVNEventAction UPDATE_DELETE
public static final SVNEventAction UPDATE_ADD
public static final SVNEventAction UPDATE_UPDATE
public static final SVNEventAction UPDATE_NONE
public static final SVNEventAction UPDATE_COMPLETED
public static final SVNEventAction UPDATE_EXTERNAL
public static final SVNEventAction STATUS_COMPLETED
public static final SVNEventAction STATUS_EXTERNAL
getContentsStatus()
,
getPropertiesStatus()
.
The SVNStatusType.STATUS_EXTERNAL
constant says only that the
item belongs to externals definitions.
public static final SVNEventAction COMMIT_MODIFIED
public static final SVNEventAction COMMIT_ADDED
public static final SVNEventAction COMMIT_DELETED
public static final SVNEventAction COMMIT_REPLACED
public static final SVNEventAction COMMIT_DELTA_SENT
public static final SVNEventAction COMMIT_COMPLETED
public static final SVNEventAction ANNOTATE
public static final SVNEventAction LOCKED
SVNWCClient
.
public static final SVNEventAction UNLOCKED
SVNWCClient
.
public static final SVNEventAction LOCK_FAILED
SVNWCClient
.
public static final SVNEventAction UNLOCK_FAILED
SVNWCClient
.
public static final SVNEventAction UPGRADE
public static final SVNEventAction UPGRADED_PATH
public static final SVNEventAction UPDATE_EXISTS
public static final SVNEventAction CHANGELIST_SET
public static final SVNEventAction CHANGELIST_CLEAR
public static final SVNEventAction CHANGELIST_MOVED
public static final SVNEventAction MERGE_BEGIN
SVNEvent.getMergeRange()
.
public static final SVNEventAction FOREIGN_MERGE_BEGIN
SVNEvent.getMergeRange()
.
public static final SVNEventAction UPDATE_REPLACE
public static final SVNEventAction PROPERTY_ADD
public static final SVNEventAction PROPERTY_MODIFY
public static final SVNEventAction PROPERTY_DELETE
public static final SVNEventAction PROPERTY_DELETE_NONEXISTENT
public static final SVNEventAction REVPROPER_SET
public static final SVNEventAction REVPROP_DELETE
public static final SVNEventAction MERGE_COMPLETE
public static final SVNEventAction TREE_CONFLICT
public static final SVNEventAction FAILED_EXTERNAL
public static final SVNEventAction PATCH
public static final SVNEventAction UPDATE_STARTED
public static final SVNEventAction PATCH_REJECTED_HUNK
public static final SVNEventAction PATCH_APPLIED_HUNK
public static final SVNEventAction UPDATE_SKIP_OBSTRUCTION
public static final SVNEventAction UPDATE_SKIP_WORKING_ONLY
public static final SVNEventAction UPDATE_SKIP_ACCESS_DENINED
public static final SVNEventAction UPDATE_EXTERNAL_REMOVED
public static final SVNEventAction UPDATE_SHADOWED_ADD
public static final SVNEventAction UPDATE_SHADOWED_UPDATE
public static final SVNEventAction UPDATE_SHADOWED_DELETE
public static final SVNEventAction SKIP_CONFLICTED
public static final SVNEventAction PATH_NONEXISTENT
public static final SVNEventAction MERGE_RECORD_INFO
public static final SVNEventAction MERGE_RECORD_INFO_BEGIN
public static final SVNEventAction MERGE_ELIDE_INFO
public static final SVNEventAction FAILED_OUT_OF_DATE
public static final SVNEventAction FAILED_LOCKED
public static final SVNEventAction FAILED_FORBIDDEN_BY_SERVER
Method Detail |
---|
public int getID()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |