docs: public static Object getValeByType(Class<?> type, Object value)
              throws Exception {
  
          // 预处理
          if (!(value instanceof String)) {
              value = "";
          }
  
          // trim
          String dataValue = (String) value;
          dataValue = dataValue.trim();
  
          // process
          String typeName = type.getName();
          typeName = typeName.toLowerCase();
  
          if (typeName.equals("int") || typeName.equals("java.lang.integer")) {
  
              if (value.equals("")) {
                  value = "0";
              }
  
              return Integer.valueOf(dataValue);
  
          } else if (typeName.equals("long") || typeName.equals("java.lang.long")) {
  
              if (value.equals("")) {
                  value = "0";
              }
  
              return Long.valueOf(dataValue);
  
          } else if (typeName.equals("boolean")
                  || typeName.equals("java.lang.boolean")) {
  
              if (value.equals("")) {
                  value = "false";
              }
  
              return Boolean.valueOf(dataValue);
  
          } else if (typeName.equals("double")
                  || typeName.equals("java.lang.double")) {
  
              if (value.equals("")) {
                  value = "0.0";
              }
  
              return Double.valueOf(dataValue);
  
          } else {
  
              return value;
          }
      }