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: package org.tmatesoft.svn.core.javahl;
13:
14: import org.tigris.subversion.javahl.Version;
15:
16: /**
17: * @version 1.1.0
18: * @author TMate Software Ltd.
19: */
20: class SVNClientImplVersion extends org.tigris.subversion.javahl.Version {
21:
22: private static SVNClientImplVersion ourInstance;
23:
24: public int getMajor() {
25: return SVNClientImpl.versionMajor();
26: }
27:
28: public int getMinor() {
29: return SVNClientImpl.versionMinor();
30: }
31:
32: public int getPatch() {
33: return SVNClientImpl.versionMicro();
34: }
35:
36: public String toString() {
37: return "SVNKit v" + getMajor() + "." + getMinor() + "."
38: + getPatch();
39: }
40:
41: public static Version getInstance() {
42: if (ourInstance == null) {
43: ourInstance = new SVNClientImplVersion();
44: }
45: return ourInstance;
46: }
47:
48: }
|