package net.sf.saxon;
/**
* The Version class holds the SAXON version information.
*/
public final class Version {
private static final String VERSION = "8.6.1";
private static final String BUILD = "112212"; //mmddhh
private static final String RELEASE_DATE = "2005-11-24";
private Version() {
// class is never instantiated
}
/**
* Return the name of this product. Supports the XSLT 2.0 system property xsl:product-name
* @return the string "SAXON"
*/
public static final String getProductName() {
return "SAXON";
}
/**
* Get the version number of the schema-aware version of the product
* @return the version number of this version of Saxon, as a string
*/
public static final String getSchemaAwareProductVersion() {
return "SA " + getProductVersion();
}
/**
* Get the version number of this version of the product
* @return the version number of this version of Saxon, as a string
*/
public static final String getProductVersion() {
return VERSION;
}
/**
* Get the issue date of this version of the product
* @return the release date, as an ISO 8601 string
*/
public static final String getReleaseDate() {
return RELEASE_DATE;
}
/**
* Get the version of the XSLT specification that this product supports
* @return the string 2.0
*/
public static final String getXSLVersionString() {
return "2.0";
}
/**
* Get a message used to identify this product when a transformation is run using the -t option
* @return A string containing both the product name and the product
* version
*/
public static final String getProductTitle() {
return getProductName() + ' ' + getProductVersion() + " from Saxonica";
}
/**
* Return a web site address containing information about the product. Supports the XSLT system property xsl:vendor-url
* @return the string "http://saxon.sf.net/"
*/
public static final String getWebSiteAddress() {
return "http://www.saxonica.com/";
}
/**
* Invoking net.sf.saxon.Version from the command line outputs the build number
* @param args not used
*/
public static void main(String[] args) {
System.err.println(getProductTitle() + " (build " + BUILD + ')');
}
}
//
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
// you may not use this file except in compliance with the License. You may obtain a copy of the
// License at http://www.mozilla.org/MPL/
//
// Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
// See the License for the specific language governing rights and limitations under the License.
//
// The Original Code is: all this file.
//
// The Initial Developer of the Original Code is Michael H. Kay.
//
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
//
// Contributor(s): none.
//
|