Save This Page
Home » xml-commons-external-1.4.01-src » org.apache.xmlcommons » [javadoc | source]
    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *     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.xmlcommons;
   19   
   20   /**
   21    * <meta name="usage" content="general"/>
   22    * Administrative class to keep track of the version number of
   23    * xml-commons external sources releases.
   24    * See xml-commons/java/external/build.xml for filtering on 1.0, etc.
   25    */
   26   public class Version
   27   {
   28   
   29     /**
   30      * Get the basic version string for the current 
   31      * xml-commons external sources release.
   32      * Version String formatted like 
   33      * <CODE>"XmlCommons v.r"</CODE>.
   34      *
   35      * Futurework: have this read version info from jar manifest.
   36      *
   37      * @return String denoting our current version
   38      */
   39     public static String getVersion()
   40     {
   41       return getProduct()+" "+getVersionNum();
   42     }
   43   
   44     /**
   45      * Get just the product name.
   46      *
   47      * @return String denoting our product name
   48      */
   49     public static String getProduct()
   50     {
   51       return "XmlCommonsExternal";
   52     }
   53   
   54     /**
   55      * Get just the version number v.r.
   56      * @return String denoting our current version number
   57      */
   58     public static String getVersionNum()
   59     {
   60       return "1.4.01";
   61     }
   62   
   63     /**
   64      * Print the release version to the command line.
   65      * @param argv command line arguments, unused.
   66      */
   67     public static void main(String argv[])
   68     {
   69       System.out.println(getVersion());
   70     }
   71   }

Save This Page
Home » xml-commons-external-1.4.01-src » org.apache.xmlcommons » [javadoc | source]