01: /**
02: * @copyright
03: * ====================================================================
04: * Copyright (c) 2003-2004 CollabNet. All rights reserved.
05: *
06: * This software is licensed as described in the file COPYING, which
07: * you should have received as part of this distribution. The terms
08: * are also available at http://subversion.tigris.org/license-1.html.
09: * If newer versions of this license are posted there, you may use a
10: * newer version instead, at your option.
11: *
12: * This software consists of voluntary contributions made by many
13: * individuals. For exact contribution history, see the revision
14: * history and logs, available at http://subversion.tigris.org/.
15: * ====================================================================
16: * @endcopyright
17: */package org.tigris.subversion.javahl;
18:
19: public class ChangePath {
20: /**
21: * Constructor to be called from the native code
22: * @param path path of the commit item
23: * @param copySrcRevision copy source revision (if any)
24: * @param copySrcPath copy source path (if any)
25: * @param action action performed
26: */
27: ChangePath(String path, long copySrcRevision, String copySrcPath,
28: char action) {
29: this .path = path;
30: this .copySrcRevision = copySrcRevision;
31: this .copySrcPath = copySrcPath;
32: this .action = action;
33: }
34:
35: /** Path of commited item */
36: private String path;
37:
38: /** Source revision of copy (if any). */
39: private long copySrcRevision;
40:
41: /** Source path of copy (if any). */
42: private String copySrcPath;
43:
44: /** 'A'dd, 'D'elete, 'R'eplace, 'M'odify */
45: private char action;
46:
47: /**
48: * Retrieve the path to the commited item
49: * @return the path to the commited item
50: */
51: public String getPath() {
52: return path;
53: }
54:
55: /**
56: * Retrieve the copy source revision (if any)
57: * @return the copy source revision (if any)
58: */
59: public long getCopySrcRevision() {
60: return copySrcRevision;
61: }
62:
63: /**
64: * Retrieve the copy source path (if any)
65: * @return the copy source path (if any)
66: */
67: public String getCopySrcPath() {
68: return copySrcPath;
69: }
70:
71: /**
72: * Retrieve action performed
73: * @return action performed
74: */
75: public char getAction() {
76: return action;
77: }
78: }
|