KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xalan > processor > XSLProcessorVersion


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17  * $Id: XSLProcessorVersion.java,v 1.49 2004/02/26 04:00:47 zongaro Exp $
18  */

19 package org.apache.xalan.processor;
20
21 /**
22  * Administrative class to keep track of the version number of
23  * the Xalan release.
24  * <P>See also: org/apache/xalan/res/XSLTInfo.properties</P>
25  * @deprecated To be replaced by org.apache.xalan.Version.getVersion()
26  * @xsl.usage general
27  */

28 public class XSLProcessorVersion
29 {
30
31   /**
32    * Print the processor version to the command line.
33    *
34    * @param argv command line arguments, unused.
35    */

36   public static void main(String JavaDoc argv[])
37   {
38     System.out.println(S_VERSION);
39   }
40
41   /**
42    * Constant name of product.
43    */

44   public static final String JavaDoc PRODUCT = "Xalan";
45
46   /**
47    * Implementation Language.
48    */

49   public static final String JavaDoc LANGUAGE = "Java";
50
51   /**
52    * Major version number.
53    * Version number. This changes only when there is a
54    * significant, externally apparent enhancement from
55    * the previous release. 'n' represents the n'th
56    * version.
57    *
58    * Clients should carefully consider the implications
59    * of new versions as external interfaces and behaviour
60    * may have changed.
61    */

62   public static final int VERSION = 2;
63
64   /**
65    * Release Number.
66    * Release number. This changes when:
67    * - a new set of functionality is to be added, eg,
68    * implementation of a new W3C specification.
69    * - API or behaviour change.
70    * - its designated as a reference release.
71    */

72   public static final int RELEASE = 6;
73
74   /**
75    * Maintenance Drop Number.
76    * Optional identifier used to designate maintenance
77    * drop applied to a specific release and contains
78    * fixes for defects reported. It maintains compatibility
79    * with the release and contains no API changes.
80    * When missing, it designates the final and complete
81    * development drop for a release.
82    */

83   public static final int MAINTENANCE = 0;
84
85   /**
86    * Development Drop Number.
87    * Optional identifier designates development drop of
88    * a specific release. D01 is the first development drop
89    * of a new release.
90    *
91    * Development drops are works in progress towards a
92    * compeleted, final release. A specific development drop
93    * may not completely implement all aspects of a new
94    * feature, which may take several development drops to
95    * complete. At the point of the final drop for the
96    * release, the D suffix will be omitted.
97    *
98    * Each 'D' drops can contain functional enhancements as
99    * well as defect fixes. 'D' drops may not be as stable as
100    * the final releases.
101    */

102   public static final int DEVELOPMENT = 0;
103   
104   /**
105    * Version String like <CODE>"<B>Xalan</B> <B>Language</B>
106    * v.r[.dd| <B>D</B>nn]"</CODE>.
107    * <P>Semantics of the version string are identical to the Xerces project.</P>
108    */

109   public static final String JavaDoc S_VERSION = PRODUCT+" "+LANGUAGE+" "
110                                    +VERSION+"."+RELEASE+"."
111                                    +(DEVELOPMENT > 0 ? ("D"+DEVELOPMENT)
112                                      : (""+MAINTENANCE));
113
114 }
115
Popular Tags