public static boolean isSingleValueType ( Class < ? > clazz ) { boolean ret ; if ( isNumber ( clazz ) || isBoolean ( clazz ) || isString ( clazz ) || isEnum ( clazz ) || isDate ( clazz ) || isCalendar ( clazz ) || isCurrency ( clazz ) ) { ret = true ; } else { ret = false ; } return ret ; }
Determines if the given class holds only one data item . Can be useful to determine if a value should be rendered as scalar .