1 16 19 package com.sun.org.apache.xml.internal.serializer; 20 21 29 public final class Version 30 { 31 32 41 public static String getVersion() 42 { 43 return getProduct()+" "+getImplementationLanguage()+" " 44 +getMajorVersionNum()+"."+getReleaseVersionNum()+"." 45 +( (getDevelopmentVersionNum() > 0) ? 46 ("D"+getDevelopmentVersionNum()) : (""+getMaintenanceVersionNum())); 47 } 48 49 54 public static void _main(String argv[]) 55 { 56 System.out.println(getVersion()); 57 } 58 59 62 public static String getProduct() 63 { 64 return "Serializer"; 65 } 66 67 70 public static String getImplementationLanguage() 71 { 72 return "Java"; 73 } 74 75 76 87 public static int getMajorVersionNum() 88 { 89 return 2; 90 91 } 92 93 101 public static int getReleaseVersionNum() 102 { 103 return 7; 104 } 105 106 115 public static int getMaintenanceVersionNum() 116 { 117 return 0; 118 } 119 120 137 public static int getDevelopmentVersionNum() 138 { 139 try { 140 if ((new String ("")).length() == 0) 141 return 0; 142 else 143 return Integer.parseInt(""); 144 } catch (NumberFormatException nfe) { 145 return 0; 146 } 147 } 148 } 149 | Popular Tags |