Enum ColumnType

java.lang.Object
java.lang.Enum<ColumnType>
com.day.cq.reporting.helpers.ColumnType
All Implemented Interfaces:
Serializable, Comparable<ColumnType>, java.lang.constant.Constable

public enum ColumnType extends Enum<ColumnType>
This enumeration defines the column types supported by the clientside implementation.
  • Enum Constant Details

    • STRING

      public static final ColumnType STRING
      Value is a String
    • NUMBER

      public static final ColumnType NUMBER
      Value is a number
    • INT

      public static final ColumnType INT
      Value is an integer number
    • DATE

      public static final ColumnType DATE
      Value is a date (= Calendar)
    • DIFF

      public static final ColumnType DIFF
      Value is a diff of two values
    • TIMESLOT

      public static final ColumnType TIMESLOT
      Value is the timeslot of a date property
    • SORTABLE

      public static final ColumnType SORTABLE
      Value is labeled with a different property
  • Method Details

    • values

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

      public static ColumnType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getTransferStr

      public String getTransferStr()
      Gets the string representation used for data transfer.
      Returns:
      The string representation used for data transfer
    • getDisplayType

      public DisplayDataType getDisplayType()
      Gets the display type for the column type.
      Returns:
      The display type
    • fromTransferString

      public static ColumnType fromTransferString(String transferStr)
      Gets a suitable ColumnType for the specified transfer representation.
      Parameters:
      transferStr - The transfer string
      Returns:
      the matching ColumnType for the specified transfer representation