DataTypeUtils { public boolean isPrimitiveType(String typeName) { Map<String, Code> primitiveTypeCodes = getPrimitiveTypeCodes(); Code primitiveTypeCode = primitiveTypeCodes.get(typeName); if (primitiveTypeCode != null) { return true; } else { return false; } }  Map<String, Code> getPrimitiveTypeCodes(); Map<String, String> getJavaTypes(); boolean isPrimitiveType(String typeName); boolean isJavaType(String typeName); boolean isArrayType(String typeName); boolean isParameterizedType(String typeName);  }
@Test public void testIsPrimitiveType1() { boolean isPrimitiveType = dataTypeUtils.isPrimitiveType("integer"); assertTrue(isPrimitiveType); }
@Test public void testIsPrimitiveType2() { boolean isPrimitiveType = dataTypeUtils.isPrimitiveType("int"); assertTrue(isPrimitiveType); }