01: /*
02: * ====================================================================
03: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
04: *
05: * This software is licensed as described in the file COPYING, which
06: * you should have received as part of this distribution. The terms
07: * are also available at http://svnkit.com/license.html
08: * If newer versions of this license are posted there, you may use a
09: * newer version instead, at your option.
10: * ====================================================================
11: */
12:
13: package org.tmatesoft.svn.core.io;
14:
15: /**
16: * The <b>SVNLocationEntry</b> represents a mapping of a path to its
17: * revision. That is, the repository path of an item in a particular
18: * revision.
19: *
20: * @version 1.1.1
21: * @author TMate Software Ltd.
22: * @see ISVNLocationEntryHandler
23: */
24: public class SVNLocationEntry {
25:
26: private long myRevision;
27: private String myPath;
28:
29: /**
30: * Constructs an <b>SVNLocationEntry</b> object.
31: *
32: * @param revision a revision number
33: * @param path an item's path in the reposytory in
34: * the <code>revision</code>
35: */
36: public SVNLocationEntry(long revision, String path) {
37: myRevision = revision;
38: myPath = path;
39: }
40:
41: /**
42: * Gets the path.
43: *
44: * @return a path
45: */
46: public String getPath() {
47: return myPath;
48: }
49:
50: /**
51: * Gets the revision number.
52: *
53: * @return a revision number.
54: */
55: public long getRevision() {
56: return myRevision;
57: }
58: }
|