01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.impl;
19:
20: /**
21: * This class defines the version number of the parser.
22: *
23: * @version $Id: Version.java 446761 2006-09-15 21:59:29Z mrglavas $
24: */
25: public class Version {
26:
27: //
28: // Data
29: //
30:
31: /** Version string.
32: * @deprecated getVersion() should be used instead. */
33: public static String fVersion = "@@VERSION@@";
34:
35: private static final String fImmutableVersion = "@@VERSION@@";
36:
37: // public methods
38:
39: /* Print out the version information.
40: * @return the version of the parser.
41: */
42: public static String getVersion() {
43: return fImmutableVersion;
44: } // getVersion(): String
45:
46: //
47: // MAIN
48: //
49:
50: /**
51: * Prints out the version number to System.out. This is needed
52: * for the build system.
53: */
54: public static void main(String argv[]) {
55: System.out.println(fVersion);
56: }
57:
58: } // class Version
|