ilog.rules.teamserver.model.reporting.impl

Class IlrDefaultReportSorter

  • java.lang.Object
    • ilog.rules.teamserver.model.reporting.impl.IlrDefaultReportSorter
  • All Implemented Interfaces:
    IlrReportSorter


    public class IlrDefaultReportSorter
    extends java.lang.Object
    implements IlrReportSorter
    An implementation of IlrReportSorter used by Decision Center.

    This implementation first sorts elements by their type, and then by alphabetical order. The order for the type is:

    • BAL rules
    • Technical rules
    • Decision tables
    • Decision trees
    • Functions
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int compare(IlrReportContext reportContext, IlrElementDetails element1, IlrElementDetails element2)
      Returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element.
      int compare(IlrReportContext reportContext, IlrElementDetails element, java.lang.Object property1, java.lang.Object property2)
      Returns a negative, zero, or positive number depending on whether the first property is less than, equal to, or greater than the second property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrDefaultReportSorter

        public IlrDefaultReportSorter()
    • Method Detail

      • compare

        public int compare(IlrReportContext reportContext,
                  IlrElementDetails element1,
                  IlrElementDetails element2)
        Description copied from interface: IlrReportSorter
        Returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element.

        Specified by:
        compare in interface IlrReportSorter
        Parameters:
        reportContext - The context in which the report is executed.
        element1 - The first element.
        element2 - The second element.
        Returns:
        A negative number if the first element is less than the second element; the value 0 if the first element is equal to the second element; and a positive number if the first element is greater than the second element.
      • compare

        public int compare(IlrReportContext reportContext,
                  IlrElementDetails element,
                  java.lang.Object property1,
                  java.lang.Object property2)
        Description copied from interface: IlrReportSorter
        Returns a negative, zero, or positive number depending on whether the first property is less than, equal to, or greater than the second property.

        Specified by:
        compare in interface IlrReportSorter
        Parameters:
        reportContext - The context in which the report is executed.
        element - The element from which the properties come from.
        property1 - The first property.
        property2 - The second property.
        Returns:
        A negative number if the first element is less than the second property; the value 0 if the first property is equal to the second property; and a positive number if the first property is greater than the second property.

© Copyright IBM Corp. 1987, 2017