public static String getLabelFromStringCode ( String code ) throws NumberFormatException { try { int intCode = Integer . parseInt ( code ) ; return getLabelFromIntCode ( intCode ) ; } catch ( NumberFormatException ex ) { throw new NumberFormatException ( String . format ( "%s but received '%s'" , "operation code must be numeric" , code ) ) ; } }
Convert from code in String type to label