# Question¶

public class Question extends AbstractRdcDomainObject

A question is part of an Instrument which has been used in at least one Surveys. The responses to a question are stored in Variables.

## Fields¶

private I18nString additionalQuestionText

Arbitrary additional question text which has been presented to the participant. Must not contain more than 1 MB characters.

### annotations¶

private I18nString annotations

Arbitrary annotations to this question. Must not contain more than 2048 characters.

### dataAcquisitionProjectId¶

private String dataAcquisitionProjectId

The id of the DataAcquisitionProject to which this question belongs. The dataAcquisitionProjectId must not be empty.

### id¶

private String id

The id of the question which uniquely identifies the question in this application. The id must not be empty and must be of the form que-{{dataAcquisitionProjectId}}-ins{{instrumentNumber}}-{{number}}\$. The id must not contain more than 512 characters.

### indexInInstrument¶

private Integer indexInInstrument

The index of the question in the Instrument. Used for sorting the questions.

### instruction¶

private I18nString instruction

The instruction for the participant which tells how to give the answers to this question. Must not contain more than 1 MB characters.

### instrumentId¶

private String instrumentId

The id of the Instrument to which this question belongs. Must not be empty.

### instrumentNumber¶

private Integer instrumentNumber

The number of the Instrument to which this question belongs. Must not be empty.

### introduction¶

private I18nString introduction

The introduction of this question which gives more context to the participant before asking the question. Must not contain more than 2048 characters.

### number¶

private String number

The number of the question. Must not be empty and must be unique within the Instrument. Must contain only (german) alphanumeric characters and „_“,“-“ and „.“ and must not contain more than 32 characters.

### questionText¶

private I18nString questionText

The question the Surveys participant was asked. It must be specified in at least one language and it must not contain more than 2048 characters.

### studyId¶

private String studyId

The id of the OrderedStudy to which this question belongs. Must not be empty.

### successorNumbers¶

private List<String> successorNumbers

List of numbers of the Questions which directly follow this question in the Instrument.

### successors¶

private List<String> successors

List of ids of the Questions which directly follow this question in the Instrument.

### technicalRepresentation¶

private TechnicalRepresentation technicalRepresentation

A TechnicalRepresentation of this question. This is optional and can be used to add the source code of the question which was used to generate it.

### topic¶

private I18nString topic

The topic or section in the Instrument to which this question belongs. It must not contain more than 2048 characters.

### type¶

private I18nString type

The type of the question. Must be one of QuestionTypes and must not be empty.