/** * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library 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 Lesser General Public License for more * details. */ package com.ese.ils.beta.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * This class is used by SOAP remote services. * * @author edik * @generated */ public class QuestionSoap implements Serializable { public static QuestionSoap toSoapModel(Question model) { QuestionSoap soapModel = new QuestionSoap(); soapModel.setQuestionId(model.getQuestionId()); soapModel.setUserId(model.getUserId()); soapModel.setSlideId(model.getSlideId()); soapModel.setModuleId(model.getModuleId()); soapModel.setAnswer(model.getAnswer()); soapModel.setQuestionText(model.getQuestionText()); return soapModel; } public static QuestionSoap[] toSoapModels(Question[] models) { QuestionSoap[] soapModels = new QuestionSoap[models.length]; for (int i = 0; i < models.length; i++) { soapModels[i] = toSoapModel(models[i]); } return soapModels; } public static QuestionSoap[][] toSoapModels(Question[][] models) { QuestionSoap[][] soapModels = null; if (models.length > 0) { soapModels = new QuestionSoap[models.length][models[0].length]; } else { soapModels = new QuestionSoap[0][0]; } for (int i = 0; i < models.length; i++) { soapModels[i] = toSoapModels(models[i]); } return soapModels; } public static QuestionSoap[] toSoapModels(List<Question> models) { List<QuestionSoap> soapModels = new ArrayList<QuestionSoap>(models.size()); for (Question model : models) { soapModels.add(toSoapModel(model)); } return soapModels.toArray(new QuestionSoap[soapModels.size()]); } public QuestionSoap() { } public long getPrimaryKey() { return _questionId; } public void setPrimaryKey(long pk) { setQuestionId(pk); } public long getQuestionId() { return _questionId; } public void setQuestionId(long questionId) { _questionId = questionId; } public long getUserId() { return _userId; } public void setUserId(long userId) { _userId = userId; } public long getSlideId() { return _slideId; } public void setSlideId(long slideId) { _slideId = slideId; } public long getModuleId() { return _moduleId; } public void setModuleId(long moduleId) { _moduleId = moduleId; } public String getAnswer() { return _answer; } public void setAnswer(String answer) { _answer = answer; } public String getQuestionText() { return _questionText; } public void setQuestionText(String questionText) { _questionText = questionText; } private long _questionId; private long _userId; private long _slideId; private long _moduleId; private String _answer; private String _questionText; }