public static boolean isViewableValue(Object value){
  if (value instanceof CompositeData || value instanceof TabularData) {
    return true;
  }
  if (value instanceof CompositeData[] || value instanceof TabularData[]) {
    return Array.getLength(value) > 0;
  }
  if (value instanceof Collection) {
    Collection<?> c=(Collection<?>)value;
    if (c.isEmpty()) {
      return false;
    }
 else {
      return Utils.isUniformCollection(c,CompositeData.class) || Utils.isUniformCollection(c,TabularData.class);
    }
  }
  return false;
}

public static boolean isViewableValue ( Object value ) { if ( value instanceof CompositeData || value instanceof TabularData ) { return true ; } if ( value instanceof CompositeData [ ] || value instanceof TabularData [ ] ) { return Array . getLength ( value ) > 0 ; } if ( value instanceof Collection ) { Collection < ? > c = ( Collection < ? > ) value ; if ( c . isEmpty ( ) ) { return false ; } else { return Utils . isUniformCollection ( c , CompositeData . class ) || Utils . isUniformCollection ( c , TabularData . class ) ; } } return false ; }
the supplied value is viewable iff : - it ' s a compositedata / tabulardata , or - it ' s a non - empty array of compositedata / tabulardata , or - it ' s a non - empty collection of compositedata / tabulardata .
