KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > Version


1 /*
2  * Copyright 1999-2002,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 package org.apache.xerces.impl;
18
19 /**
20  * This class defines the version number of the parser.
21  *
22  * @version $Id: Version.java,v 1.9 2004/02/24 23:03:46 mrglavas Exp $
23  */

24 public class Version {
25
26     //
27
// Data
28
//
29

30     /** Version string.
31      * @deprecated getVersion() should be used instead. */

32     public static String JavaDoc fVersion = "@@VERSION@@";
33
34     private static final String JavaDoc fImmutableVersion = "@@VERSION@@";
35
36     // public methods
37

38     /* Print out the version information.
39      * @return the version of the parser.
40      */

41     public static String JavaDoc getVersion() {
42         return fImmutableVersion;
43     } // getVersion(): String
44

45     //
46
// MAIN
47
//
48

49     /**
50      * Prints out the version number to System.out. This is needed
51      * for the build system.
52      */

53     public static void main(String JavaDoc argv[]) {
54         System.out.println(fVersion);
55     }
56
57 } // class Version
58
Popular Tags