1 package org.ejen.ext; 22 23 import org.apache.xalan.extensions.ExpressionContext; 24 25 63 public class Version { 64 65 68 protected Version() {} 69 70 71 public static final int HIGH_VERSION = 1; 72 73 74 public static final int LOW_VERSION = 0; 75 76 77 public static final String VERSION_STATUS = ".0"; 78 79 90 public static int high(ExpressionContext context) { 91 return HIGH_VERSION; 92 } 93 94 105 public static int low(ExpressionContext context) { 106 return LOW_VERSION; 107 } 108 109 120 public static String status(ExpressionContext context) { 121 return VERSION_STATUS; 122 } 123 124 136 public static String toString(ExpressionContext context) { 137 return "" + HIGH_VERSION + "." + LOW_VERSION + VERSION_STATUS; 138 } 139 } 140 | Popular Tags |