content: /*
   *  Copyright (C) 2010-2015,2021 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.app.gwt.client.survey;
  
  import java.util.List;
  import java.util.Map;
  
  import com.gallatinsystems.framework.gwt.dto.client.BaseDto;
  import com.gallatinsystems.framework.gwt.dto.client.NamedObject;
  
  public class QuestionGroupDto extends BaseDto implements NamedObject {
  
      private static final long serialVersionUID = -7253934961271624253L;
  
      private List<QuestionDto> questionList = null;
  
      private String code;
      private Long surveyId;
      private Integer order;
      private String path;
      private String name;
      private Long sourceId;
      private Boolean repeatable;
      private String status;
      private Boolean immutable;
  
      private Map<String, TranslationDto> translationMap;
  
      public Integer getOrder() {
          return order;
      }
  
      public void setOrder(Integer order) {
          this.order = order;
      }
  
      public String getPath() {
          return path;
      }
  
      public void setPath(String path) {
          this.path = path;
      }
  
      public Long getSurveyId() {
          return surveyId;
      }
  
      public void setSurveyId(Long surveyId) {
          this.surveyId = surveyId;
      }
  
      public String getCode() {
          return code;
      }
  
      public void setCode(String code) {
          this.code = code;
      }
  
      @Override
      public String getDisplayName() {
          return getCode();
      }
  
      @Override
      public Long getKeyId() {
          return super.getKeyId();
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getName() {
          return name;
      }
  
      public Long getSourceId() {
          return sourceId;
      }
  
      public void setSourceId(Long sourceId) {
          this.sourceId = sourceId;
      }
  
      public String getStatus() {
          return status;
      }
  
      public void setStatus(String status) {
          this.status = status;
      }
      
      public void setRepeatable(Boolean repeatable) {
          this.repeatable = repeatable;
      }
      
      public Boolean getRepeatable() {
          return repeatable;
      }
  
      public Boolean getImmutable() {
          return immutable;
      }
  
      public void setImmutable(Boolean immutable) {
          this.immutable = immutable;
      }
  
      public Map<String, TranslationDto> getTranslationMap() {
          return translationMap;
      }
  
      public void setTranslationMap(Map<String, TranslationDto> translationMap) {
          this.translationMap = translationMap;
      }
  
      public List<QuestionDto> getQuestionList() {
          return questionList;
      }
  
      public void setQuestionList(List<QuestionDto> questionList) {
          this.questionList = questionList;
      }
  }
  