Package com.day.cq.reporting.helpers
Enum ColumnType
- All Implemented Interfaces:
Serializable,Comparable<ColumnType>,java.lang.constant.Constable
This enumeration defines the column types supported by the clientside implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnTypefromTransferString(String transferStr) Gets a suitableColumnTypefor the specified transfer representation.Gets the display type for the column type.Gets the string representation used for data transfer.static ColumnTypeReturns the enum constant of this type with the specified name.static ColumnType[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STRING
Value is a String -
NUMBER
Value is a number -
INT
Value is an integer number -
DATE
Value is a date (=Calendar) -
DIFF
Value is a diff of two values -
TIMESLOT
Value is the timeslot of a date property -
SORTABLE
Value is labeled with a different property
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getTransferStr
Gets the string representation used for data transfer.- Returns:
- The string representation used for data transfer
-
getDisplayType
Gets the display type for the column type.- Returns:
- The display type
-
fromTransferString
Gets a suitableColumnTypefor the specified transfer representation.- Parameters:
transferStr- The transfer string- Returns:
- the matching
ColumnTypefor the specified transfer representation
-