Package com.day.cq.reporting.helpers
Enum ColumnType
- java.lang.Object
-
- java.lang.Enum<ColumnType>
-
- com.day.cq.reporting.helpers.ColumnType
-
- All Implemented Interfaces:
Serializable,Comparable<ColumnType>
public enum ColumnType extends Enum<ColumnType>
This enumeration defines the column types supported by the clientside implementation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATEValue is a date (=Calendar)DIFFValue is a diff of two valuesINTValue is an integer numberNUMBERValue is a numberSORTABLEValue is labeled with a different propertySTRINGValue is a StringTIMESLOTValue is the timeslot of a date property
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColumnTypefromTransferString(String transferStr)Gets a suitableColumnTypefor the specified transfer representation.DisplayDataTypegetDisplayType()Gets the display type for the column type.StringgetTransferStr()Gets the string representation used for data transfer.static ColumnTypevalueOf(String name)Returns 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.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ColumnType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ColumnType c : ColumnType.values()) System.out.println(c);
- 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 nameNullPointerException- 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 suitableColumnTypefor the specified transfer representation.- Parameters:
transferStr- The transfer string- Returns:
- the matching
ColumnTypefor the specified transfer representation
-
-