// XAAL toolkit // Copyright (C) 2009 Ville Karavirta // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . package xaal.objects.interaction; import java.util.Iterator; import java.util.LinkedList; import java.util.List; public class QuestionContents { //private String text; private String type; private List items; public QuestionContents(String type, String text) { this(type); this.items.add(text); } public QuestionContents(String type) { this.type = type; this.items = new LinkedList(); } /*public String getText() { return text; } public void setText(String text) { this.text = text; }*/ public void addItem(Object o) { this.items.add(o); } public Iterator getItems() { return this.items.iterator(); } public String getType() { return type; } public void setType(String type) { this.type = type; } }