Mode-independent Computer Aided Interviewing.

Survey Definition
public class ExampleSurvey extends SimpleContainer {

    public ExampleSurvey() {
        this.setId("Example_Survey");
        this.setText("Sonar Test");

        SurveyQuestion q1 = new SingleSelectQuestion();
        q1.setId("question1");
        q1.setText("What do you think about Sonar CAPI?");

        ResponseList q1resp = new SimpleResponseList();
        q1resp.addListItem(new TextListItem("5", "Like it very much"));
        q1resp.addListItem(new TextListItem("4", "Like it"));
        q1resp.addListItem(new TextListItem("3", "Like it somewhat"));
        q1resp.addListItem(new TextListItem("2", "Dislike it"));
        q1resp.addListItem(new TextListItem("1", "Dislike it very much"));

        q1.setResponseList(q1resp);

        this.addSurveyComponent(q1);
    }
    
}