KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > Version


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

6
7 public final class Version {
8
9     private static final String JavaDoc VERSION = "8.5.1";
10     private static final String JavaDoc BUILD = "082614"; //mmddhh
11
private static final String JavaDoc RELEASE_DATE = "2005-08-26";
12
13     private Version() {
14         // class is never instantiated
15
}
16
17     /**
18      * Return the name of this product. Supports the XSLT 2.0 system property xsl:product-name
19      * @return the string "SAXON"
20      */

21
22
23     public static final String JavaDoc getProductName() {
24         return "SAXON";
25     }
26
27    /**
28      * Get the version number of the schema-aware version of the product
29      * @return the version number of this version of Saxon, as a string
30      */

31
32    public static final String JavaDoc getSchemaAwareProductVersion() {
33         return "SA " + getProductVersion();
34     }
35
36     /**
37      * Get the version number of this version of the product
38      * @return the version number of this version of Saxon, as a string
39      */

40
41     public static final String JavaDoc getProductVersion() {
42         return VERSION;
43     }
44
45     /**
46      * Get the issue date of this version of the product
47      * @return the release date, as an ISO 8601 string
48      */

49
50     public static final String JavaDoc getReleaseDate() {
51         return RELEASE_DATE;
52     }
53
54     /**
55      * Get the version of the XSLT specification that this product supports
56      * @return the string 2.0
57      */

58
59     public static final String JavaDoc getXSLVersionString() {
60         return "2.0";
61     }
62
63     /**
64      * Get a message used to identify this product when a transformation is run using the -t option
65      * @return A string containing both the product name and the product
66      * version
67      */

68
69     public static final String JavaDoc getProductTitle() {
70         return getProductName() + ' ' + getProductVersion() + " from Saxonica";
71     }
72
73     /**
74      * Return a web site address containing information about the product. Supports the XSLT system property xsl:vendor-url
75      * @return the string "http://saxon.sf.net/"
76      */

77
78     public static final String JavaDoc getWebSiteAddress() {
79         return "http://www.saxonica.com/";
80     }
81
82     /**
83      * Invoking net.sf.saxon.Version from the command line outputs the build number
84      * @param args not used
85      */

86     public static void main(String JavaDoc[] args) {
87         System.err.println(getProductTitle() + " (build " + BUILD + ')');
88     }
89 }
90
91
92
93 //
94
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
95
// you may not use this file except in compliance with the License. You may obtain a copy of the
96
// License at http://www.mozilla.org/MPL/
97
//
98
// Software distributed under the License is distributed on an "AS IS" basis,
99
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
100
// See the License for the specific language governing rights and limitations under the License.
101
//
102
// The Original Code is: all this file.
103
//
104
// The Initial Developer of the Original Code is Michael H. Kay.
105
//
106
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
107
//
108
// Contributor(s): none.
109
//
110
Popular Tags