stagesupport/src/main/java/com/streamsets/pipeline/lib/operation/OperationType.java
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)
      );
    }
  }
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)
      );
    }
  }
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
@param code
@return
Convert from code in String type to label