001: /**
002: * @copyright
003: * ====================================================================
004: * Copyright (c) 2003-2005 CollabNet. All rights reserved.
005: *
006: * This software is licensed as described in the file COPYING, which
007: * you should have received as part of this distribution. The terms
008: * are also available at http://subversion.tigris.org/license-1.html.
009: * If newer versions of this license are posted there, you may use a
010: * newer version instead, at your option.
011: *
012: * This software consists of voluntary contributions made by many
013: * individuals. For exact contribution history, see the revision
014: * history and logs, available at http://subversion.tigris.org/.
015: * ====================================================================
016: * @endcopyright
017: */package org.tigris.subversion.javahl;
018:
019: /**
020: * this class contains all the information passed by the onNotify2 method of
021: * the Notify2 class. This is used notify the SVNClientInterfacce users all
022: * relevant events.
023: * @since 1.2
024: */
025: public class NotifyInformation {
026: /**
027: * the path of the item, which is the source of the event.
028: */
029: private String path;
030: /**
031: * the action, which triggered this event (See NotifyAction).
032: */
033: private int action;
034: /**
035: * the kind of the item (See NodeKind).
036: */
037: private int kind;
038: /**
039: * the mime type of the item.
040: */
041: private String mimeType;
042: /**
043: * any lock for the item
044: */
045: private Lock lock;
046: /**
047: * any error message for the item
048: */
049: private String errMsg;
050: /**
051: * the state of the content of the item (See NotifyStatus).
052: */
053: private int contentState;
054: /**
055: * the state of the properties of the item (See NotifyStatus).
056: */
057: private int propState;
058: /**
059: * the state of the lock of the item (See LockStatus).
060: */
061: private int lockState;
062: /**
063: * the revision of the item.
064: */
065: private long revision;
066:
067: /**
068: * This constructor is to be used by the native code. For the parameter
069: * see the matching members
070: * @param path
071: * @param action
072: * @param kind
073: * @param mimeType
074: * @param lock
075: * @param errMsg
076: * @param contentState
077: * @param propState
078: * @param lockState
079: * @param revision
080: */
081: NotifyInformation(String path, int action, int kind,
082: String mimeType, Lock lock, String errMsg,
083: int contentState, int propState, int lockState,
084: long revision) {
085: this .path = path;
086: this .action = action;
087: this .kind = kind;
088: this .mimeType = mimeType;
089: this .lock = lock;
090: this .errMsg = errMsg;
091: this .contentState = contentState;
092: this .propState = propState;
093: this .lockState = lockState;
094: this .revision = revision;
095: }
096:
097: /**
098: * return the path of the item, which is the source of the event.
099: */
100: public String getPath() {
101: return path;
102: }
103:
104: /**
105: * return the action, which triggered this event (See NotifyAction).
106: */
107: public int getAction() {
108: return action;
109: }
110:
111: /**
112: * return the kind of the item (See NodeKind).
113: */
114: public int getKind() {
115: return kind;
116: }
117:
118: /**
119: * return the mime type of the item.
120: */
121: public String getMimeType() {
122: return mimeType;
123: }
124:
125: /**
126: * return any lock for the item
127: */
128: public Lock getLock() {
129: return lock;
130: }
131:
132: /**
133: * return any error message for the item
134: */
135: public String getErrMsg() {
136: return errMsg;
137: }
138:
139: /**
140: * return the state of the content of the item (See NotifyStatus).
141: */
142: public int getContentState() {
143: return contentState;
144: }
145:
146: /**
147: * return the state of the properties of the item (See NotifyStatus).
148: */
149: public int getPropState() {
150: return propState;
151: }
152:
153: /**
154: * return the state of the lock of the item (See LockStatus).
155: */
156: public int getLockState() {
157: return lockState;
158: }
159:
160: /**
161: * return the revision of the item.
162: */
163: public long getRevision() {
164: return revision;
165: }
166: }
|