Enum Class AggregateFunction

java.lang.Object
java.lang.Enum<AggregateFunction>
io.keikai.axyra.sheets.AggregateFunction
All Implemented Interfaces:
Serializable, Comparable<AggregateFunction>, Constable

public enum AggregateFunction extends Enum<AggregateFunction>
Aggregate function for a pivot table data (values) field.

Mirrors ECMA-376 Part 1 §18.18.18 ST_DataConsolidateFunction, the value set of the subtotal attribute on <dataField>.

  • Enum Constant Details

  • Method Details

    • values

      public static AggregateFunction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AggregateFunction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • ooxml

      public String ooxml()
      The ST_DataConsolidateFunction string ("sum", "countNums", ...).
    • fromOoxml

      public static AggregateFunction fromOoxml(String value)
      Parses an ST_DataConsolidateFunction string (case-insensitive).