1 16 19 package com.sun.org.apache.xalan.internal; 20 21 32 public class Version 33 { 34 35 44 public static String getVersion() 45 { 46 return getProduct()+" "+getImplementationLanguage()+" " 47 +getMajorVersionNum()+"."+getReleaseVersionNum()+"." 48 +( (getDevelopmentVersionNum() > 0) ? 49 ("D"+getDevelopmentVersionNum()) : (""+getMaintenanceVersionNum())); 50 } 51 52 57 public static void _main(String argv[]) 58 { 59 System.out.println(getVersion()); 60 } 61 62 65 public static String getProduct() 66 { 67 return "Xalan"; 68 } 69 70 73 public static String getImplementationLanguage() 74 { 75 return "Java"; 76 } 77 78 79 90 public static int getMajorVersionNum() 91 { 92 return 2; 93 94 } 95 96 104 public static int getReleaseVersionNum() 105 { 106 return 6; 107 } 108 109 118 public static int getMaintenanceVersionNum() 119 { 120 return 0; 121 } 122 123 140 public static int getDevelopmentVersionNum() 141 { 142 try { 143 if ((new String ("")).length() == 0) 144 return 0; 145 else 146 return Integer.parseInt(""); 147 } catch (NumberFormatException nfe) { 148 return 0; 149 } 150 } 151 } 152 | Popular Tags |