/** * Determine if an object is a primitive type * @param object any object * @return true if the object is a String or primitive class type */ private boolean isObjectSimple(Object object) { boolean primitive = false; if (object != null) { Class clazz = object.getClass(); primitive = clazz.isPrimitive() || ConstructorUtils.isClassSimple(clazz); } return primitive; }
/** * @param type any class * @return true if this class is a bean of some kind (i.e. not primitive, immutable, or a holder like a map) */ public static boolean isClassBean(Class<?> type) { checkNull(type); boolean bean = true; if ( isClassSimple(type) || isClassObjectHolder(type) ) { bean = false; } return bean; }
/** * @param type any class * @return true if this class is a bean of some kind (i.e. not primitive, immutable, or a holder like a map) */ public static boolean isClassBean(Class<?> type) { checkNull(type); boolean bean = true; if ( isClassSimple(type) || isClassObjectHolder(type) ) { bean = false; } return bean; }
} else { if (ConstructorUtils.isClassSimple(fromType)) { convert.put("data", toConvert); } else {
} else { if (ConstructorUtils.isClassSimple(fromType)) { convert.put("data", toConvert); } else {
Class<?> componentType = fromType.getComponentType(); if ( String.class.equals(toType) && ConstructorUtils.isClassSimple(componentType)) { return (T) ArrayUtils.arrayToString((Object[]) value); } else { && ! ConstructorUtils.isClassSimple(toType) ) {
Class<?> componentType = fromType.getComponentType(); if ( String.class.equals(toType) && ConstructorUtils.isClassSimple(componentType)) { return (T) ArrayUtils.arrayToString((Object[]) value); } else { && ! ConstructorUtils.isClassSimple(toType) ) {
if ( ConstructorUtils.isClassSimple(type) ) {
if ( ConstructorUtils.isClassSimple(type) ) {
Object value = entry.getValue(); try { if ( ConstructorUtils.isClassSimple(targetType) ) {
Object value = entry.getValue(); try { if ( ConstructorUtils.isClassSimple(targetType) ) {
if ( ConstructorUtils.isClassSimple(type) ) {
if ( ConstructorUtils.isClassSimple(type) ) {
if ( ConstructorUtils.isClassSimple(type) ) {
sb.append(" <entityClass>\n"); sb.append(" <class>"+ entityType.getName() +"</class>\n"); if (ConstructorUtils.isClassSimple(entityType)) { sb.append(" <type>simple</type>\n"); } else if (ConstructorUtils.isClassCollection(entityType)) { sb.append(" <h4 style='padding-left:0.5em;margin-bottom:0.2em;'>"+entityProperties.getProperty(DESCRIBE, "describe.entity.class", locale)+" : "+ entityType.getName() +"</h4>\n"); sb.append(" <div style='padding-left:1em;padding-bottom:1em;'>\n"); if (ConstructorUtils.isClassSimple(entityType)) { sb.append( makeResolveType("simple", null, locale)); } else if (ConstructorUtils.isClassCollection(entityType)) {
if ( ConstructorUtils.isClassSimple(type) ) {
sb.append(" <entityClass>\n"); sb.append(" <class>"+ entityType.getName() +"</class>\n"); if (ConstructorUtils.isClassSimple(entityType)) { sb.append(" <type>simple</type>\n"); } else if (ConstructorUtils.isClassCollection(entityType)) { sb.append(" <h4 style='padding-left:0.5em;margin-bottom:0.2em;'>"+entityProperties.getProperty(DESCRIBE, "describe.entity.class", locale)+" : "+ entityType.getName() +"</h4>\n"); sb.append(" <div style='padding-left:1em;padding-bottom:1em;'>\n"); if (ConstructorUtils.isClassSimple(entityType)) { sb.append( makeResolveType("simple", null, locale)); } else if (ConstructorUtils.isClassCollection(entityType)) {
Class<?> beanClass = bean.getClass(); if (ConstructorUtils.isClassSimple(beanClass) || ConstructorUtils.isClassSpecial(beanClass)) {
Class<?> beanClass = bean.getClass(); if (ConstructorUtils.isClassSimple(beanClass) || ConstructorUtils.isClassSpecial(beanClass)) {