net.sf.jxls.util
Class ReportUtil

java.lang.Object
  extended by net.sf.jxls.util.ReportUtil

public class ReportUtil
extends java.lang.Object

Author:
Leonid Vysochyn

Constructor Summary
ReportUtil()
           
 
Method Summary
static java.util.Collection groupCollectionData(java.util.Collection objects, java.lang.String groupBy)
           
static java.util.Collection groupCollectionData(java.util.Collection objects, java.lang.String groupBy, java.lang.String groupOrder, java.lang.String select, Configuration configuration)
          Groups collection of objects by given object property using provided groupOrder
static boolean shouldSelectCollectionData(java.util.Map beans, java.lang.String select, Configuration configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportUtil

public ReportUtil()
Method Detail

groupCollectionData

public static java.util.Collection groupCollectionData(java.util.Collection objects,
                                                       java.lang.String groupBy)
                                                throws java.lang.NoSuchMethodException,
                                                       java.lang.IllegalAccessException,
                                                       java.lang.reflect.InvocationTargetException
Throws:
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

groupCollectionData

public static java.util.Collection groupCollectionData(java.util.Collection objects,
                                                       java.lang.String groupBy,
                                                       java.lang.String groupOrder,
                                                       java.lang.String select,
                                                       Configuration configuration)
                                                throws java.lang.NoSuchMethodException,
                                                       java.lang.IllegalAccessException,
                                                       java.lang.reflect.InvocationTargetException
Groups collection of objects by given object property using provided groupOrder

Parameters:
objects - - Collection of objects to group
groupBy - - Name of the property to group objects in the original collection
groupOrder - - Indicates how groups should be sorted. If groupOrder is null then group order is preserved the same as iteration order of the original collection. If groupOrder equals to "asc" or "desc" (case insensitive) groups will be sorted accordingly
select - - binary expression used to select which items go in the collection
configuration - - Configuration class for this transformation
Returns:
Collection of GroupData objects containing group data and collection of corresponding group items
Throws:
java.lang.NoSuchMethodException - - Thrown when there is an error accessing given bean property by reflection
java.lang.IllegalAccessException - - Thrown when there is an error accessing given bean property by reflection
java.lang.reflect.InvocationTargetException - - Thrown when there is an error accessing given bean property by reflection

shouldSelectCollectionData

public static boolean shouldSelectCollectionData(java.util.Map beans,
                                                 java.lang.String select,
                                                 Configuration configuration)


Copyright © 2005-2013 jXLS Team. All Rights Reserved.