Class OdfReferenceTableHelper.SortField

java.lang.Object
org.ametys.odf.enumeration.OdfReferenceTableHelper.SortField
Enclosing class:
OdfReferenceTableHelper

public static final class OdfReferenceTableHelper.SortField extends Object
This class represents a sort field for reference table.
  • Constructor Details

    • SortField

      public SortField(String name, boolean ascending)
      Create a sort field
      Parameters:
      name - the name of field to sort on
      ascending - true to sort in ascending order, false otherwise
    • SortField

      public SortField(String name, boolean ascending, boolean normalize)
      Create a sort field
      Parameters:
      name - the name of field to sort on
      ascending - true to sort in ascending order, false otherwise
      normalize - true to normalize string properties (remove accents and lower case)
  • Method Details

    • getName

      public String getName()
      Get the name of the sort field
      Returns:
      the name of the sort field
    • getAscending

      public boolean getAscending()
      Get the order for sorting results
      Returns:
      true to sort results in ascending order, false otherwise
    • getNormalize

      public boolean getNormalize()
      Return the normalize status for this sort field
      Returns:
      true if string properties should be normalized (remove accents and lower case)