Class GroupedMetaDataComparator

  extended by org.pentaho.reporting.engine.classic.core.metadata.GroupedMetaDataComparator
All Implemented Interfaces:

public class GroupedMetaDataComparator
extends Object
implements Comparator

This Comparator implements the standard java.util.Comparator interface. The intended use is to group MetaData elements based on either: (1) The ordinal value in the file (see documentation in that file for how this is accomplished. Any group(s) not represented in that file will be displayed last if more than one group they will all be displayed last in alpha order. (2) If the doesn't exist or can't be loaded, the value of the *.grouping key (using the standard string compare).

This effectively sorts the attribute and style elements into groups for display by a GUI. Fine grain ordering of the groups can be accomplished using the file.

Documented by William Seyler

Thomas Morgner

Constructor Summary
Method Summary
 int compare(Object o1, Object o2)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator

Constructor Detail


public GroupedMetaDataComparator()
Method Detail


public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator