/* * Copyright (C) 2010-2012 Stichting Akvo (Akvo Foundation) * * This file is part of Akvo FLOW. * * Akvo FLOW is free software: you can redistribute it and modify it under the terms of * the GNU Affero General Public License (AGPL) as published by the Free Software Foundation, * either version 3 of the License or any later version. * * Akvo FLOW 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 Affero General Public License included below for more details. * * The full license text can also be seen at <http://www.gnu.org/licenses/agpl.html>. */ package org.waterforpeople.mapping.domain; import java.util.List; import javax.jdo.annotations.PersistenceCapable; import com.gallatinsystems.framework.domain.BaseDomain; /** * domain object to store a mapping from a survey question to an object attribute * * @author Christopher Fagiani */ @PersistenceCapable public class SurveyAttributeMapping extends BaseDomain { private static final long serialVersionUID = 2502190477085947868L; private String objectName; private String attributeName; private Long surveyId; private String surveyQuestionId; private Long questionGroupId; private List<String> apTypes; public List<String> getApTypes() { return apTypes; } public void setApTypes(List<String> apTypes) { this.apTypes = apTypes; } public Long getQuestionGroupId() { return questionGroupId; } public void setQuestionGroupId(Long questionGroupId) { this.questionGroupId = questionGroupId; } public String getObjectName() { return objectName; } public void setObjectName(String objectName) { this.objectName = objectName; } public String getAttributeName() { return attributeName; } public void setAttributeName(String attributeName) { this.attributeName = attributeName; } public Long getSurveyId() { return surveyId; } public void setSurveyId(Long surveyId) { this.surveyId = surveyId; } public String getSurveyQuestionId() { return surveyQuestionId; } public void setSurveyQuestionId(String surveyQuestionId) { this.surveyQuestionId = surveyQuestionId; } }