Package com.day.cq.reporting.helpers
Enum DisplayDataType
- java.lang.Object
-
- java.lang.Enum<DisplayDataType>
-
- com.day.cq.reporting.helpers.DisplayDataType
-
- All Implemented Interfaces:
Serializable
,Comparable<DisplayDataType>
public enum DisplayDataType extends Enum<DisplayDataType>
This enumeration defines avaiable data types that are supported by the client for displaying.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Creates a suitable string representation of the enumeration value.static DisplayDataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DisplayDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMBER
public static final DisplayDataType NUMBER
numeric data
-
INT
public static final DisplayDataType INT
integer numeric data
-
STRING
public static final DisplayDataType STRING
textual data
-
DATE
public static final DisplayDataType DATE
date
-
LIST
public static final DisplayDataType LIST
list
-
CUSTOM
public static final DisplayDataType CUSTOM
custom
-
-
Method Detail
-
values
public static DisplayDataType[] 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 (DisplayDataType c : DisplayDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisplayDataType 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
-
toString
public String toString()
Creates a suitable string representation of the enumeration value.- Overrides:
toString
in classEnum<DisplayDataType>
- Returns:
- The string representation
-
-