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 SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDDIName()static ResponseKindvalueOf(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- 
DATETIMEpublic static final ResponseKind DATETIME 
 - 
TEXTpublic static final ResponseKind TEXT 
 - 
NUMERICpublic static final ResponseKind NUMERIC 
 - 
LISTpublic static final ResponseKind LIST 
 - 
SCALEpublic static final ResponseKind SCALE 
 - 
MIXEDpublic static final ResponseKind MIXED 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- java.lang.NullPointerException- if the argument is null
 
 - 
getDDINamepublic java.lang.String getDDIName() 
 
- 
 
-