Example #1
0
 /**
  * Returns the String represention of the java type for a primitive for example int/Integer,
  * float/Float.
  *
  * @param type
  * @return the string representation
  */
 protected static String getJavaObjectTypeFor(JPrimitiveType type) {
   if (type == JPrimitiveType.INT) {
     return "Integer";
   } else {
     String s = type.getSimpleSourceName();
     return StringCase.toUpper(s.substring(0, 1)) + s.substring(1);
   }
 }