KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > Version


1 package com.icl.saxon;
2
3 /**
4 * The Version class holds the SAXON version information.
5 */

6
7 public class Version
8 {
9     public static String JavaDoc javaVersion = System.getProperty("java.version");
10     public static boolean preJDK12 =
11         javaVersion.startsWith("1.1") ||
12         javaVersion.startsWith("1.0") ||
13         javaVersion.startsWith("3.1.1 (Sun 1.1"); // special for IRIX 6.5 Java
14

15     public static final boolean isPreJDK12() {
16         return preJDK12;
17     }
18     
19     public final static String JavaDoc getVersion() {
20         return "6.5.3";
21     }
22
23     public final static double getXSLVersion() {
24         return 1.0;
25     }
26
27     public final static String JavaDoc getXSLVersionString() {
28         return "1.0";
29     }
30
31     public static String JavaDoc getProductName() {
32         return "SAXON " + getVersion() + " from Michael Kay";
33     }
34
35     public static String JavaDoc getWebSiteAddress() {
36         return "http://saxon.sf.net/";
37     }
38 }
39
40
41
42 //
43
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
44
// you may not use this file except in compliance with the License. You may obtain a copy of the
45
// License at http://www.mozilla.org/MPL/
46
//
47
// Software distributed under the License is distributed on an "AS IS" basis,
48
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
49
// See the License for the specific language governing rights and limitations under the License.
50
//
51
// The Original Code is: all this file.
52
//
53
// The Initial Developer of the Original Code is
54
// Michael Kay of International Computers Limited (mhkay@iclway.co.uk).
55
//
56
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
57
//
58
// Contributor(s): none.
59
//
60
Popular Tags