public static short value(String s) { short i = (short) classes.getValue(s.toUpperCase()); if (i >= 0) return i; try { return Short.parseShort(s); } catch (Exception e) { return (-1); } }