/** * Determines the type of a (sanitized) revision string returned by the * RevisionHandler. * * @param handler the RevisionHandler to determine the type for * @return the type, UNKNOWN if it cannot be determined */ public static Type getType(RevisionHandler handler) { return getType(extract(handler)); }
/** * Determines the type of a (sanitized) revision string returned by the * RevisionHandler. * * @param handler the RevisionHandler to determine the type for * @return the type, UNKNOWN if it cannot be determined */ public static Type getType(RevisionHandler handler) { return getType(extract(handler)); }
/** * For testing only. The first parameter must be a classname of a * class implementing the weka.core.RevisionHandler interface. * * @param args the commandline arguments * @throws Exception if something goes wrong */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("\nUsage: " + RevisionUtils.class.getName() + " <classname>\n"); System.exit(1); } RevisionHandler handler = (RevisionHandler) Class.forName(args[0]).newInstance(); System.out.println("Type: " + getType(handler)); System.out.println("Revision: " + extract(handler)); } }
/** * For testing only. The first parameter must be a classname of a * class implementing the weka.core.RevisionHandler interface. * * @param args the commandline arguments * @throws Exception if something goes wrong */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("\nUsage: " + RevisionUtils.class.getName() + " <classname>\n"); System.exit(1); } RevisionHandler handler = (RevisionHandler) Class.forName(args[0]).newInstance(); System.out.println("Type: " + getType(handler)); System.out.println("Revision: " + extract(handler)); } }