Enum ResponseKind
- java.lang.Object
-
- java.lang.Enum<ResponseKind>
-
- no.nsd.qddt.domain.responsedomain.ResponseKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ResponseKind>
public enum ResponseKind extends java.lang.Enum<ResponseKind>
A ResponseKind define what kind of ResponseDomain (answer) this is, this will also define the way the Question is formatted. This Class would be a good candidate to change into a ENUM, as every entry will have to be mapped to specific behaviour in GUI and intruments/surveys.- DATETIME
- A datetime response
- TEXT
- A textual response.
- NUMERIC
- A numeric response (the intent is to analyze the response as a number) for a question item.
- LIST
- A coded response (where both codes and their related category value are displayed) for a question item.
- SCALE
- A scale response which describes a 1..n dimensional scale of various display types for a question.
- MIXED
- A response with two or more different subtypes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDDIName()
static ResponseKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ResponseKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATETIME
public static final ResponseKind DATETIME
-
TEXT
public static final ResponseKind TEXT
-
NUMERIC
public static final ResponseKind NUMERIC
-
LIST
public static final ResponseKind LIST
-
SCALE
public static final ResponseKind SCALE
-
MIXED
public static final ResponseKind MIXED
-
-
Method Detail
-
values
public static ResponseKind[] 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 (ResponseKind c : ResponseKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResponseKind valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDDIName
public java.lang.String getDDIName()
-
-