KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xmlcommons > Version


1 /*
2  * Copyright 2001-2005 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 package org.apache.xmlcommons;
18
19 /**
20  * <meta name="usage" content="general"/>
21  * Administrative class to keep track of the version number of
22  * xml-commons external sources releases.
23  * See xml-commons/java/external/build.xml for filtering on 1.0, etc.
24  */

25 public class Version
26 {
27
28   /**
29    * Get the basic version string for the current
30    * xml-commons external sources release.
31    * Version String formatted like
32    * <CODE>"XmlCommons v.r"</CODE>.
33    *
34    * Futurework: have this read version info from jar manifest.
35    *
36    * @return String denoting our current version
37    */

38   public static String JavaDoc getVersion()
39   {
40     return getProduct()+" "+getVersionNum();
41   }
42
43   /**
44    * Get just the product name.
45    *
46    * @return String denoting our product name
47    */

48   public static String JavaDoc getProduct()
49   {
50     return "XmlCommonsExternal";
51   }
52
53   /**
54    * Get just the version number v.r.
55    * @return String denoting our current version number
56    */

57   public static String JavaDoc getVersionNum()
58   {
59     return "1.3.01";
60   }
61
62   /**
63    * Print the release version to the command line.
64    * @param argv command line arguments, unused.
65    */

66   public static void main(String JavaDoc argv[])
67   {
68     System.out.println(getVersion());
69   }
70 }
71
Popular Tags