1
22
23 package com.liferay.portlet.polls.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.List;
29
30
48 public class PollsChoiceSoap implements Serializable {
49 public static PollsChoiceSoap toSoapModel(PollsChoice model) {
50 PollsChoiceSoap soapModel = new PollsChoiceSoap();
51
52 soapModel.setUuid(model.getUuid());
53 soapModel.setChoiceId(model.getChoiceId());
54 soapModel.setQuestionId(model.getQuestionId());
55 soapModel.setName(model.getName());
56 soapModel.setDescription(model.getDescription());
57
58 return soapModel;
59 }
60
61 public static PollsChoiceSoap[] toSoapModels(List models) {
62 List soapModels = new ArrayList(models.size());
63
64 for (int i = 0; i < models.size(); i++) {
65 PollsChoice model = (PollsChoice)models.get(i);
66
67 soapModels.add(toSoapModel(model));
68 }
69
70 return (PollsChoiceSoap[])soapModels.toArray(new PollsChoiceSoap[0]);
71 }
72
73 public PollsChoiceSoap() {
74 }
75
76 public long getPrimaryKey() {
77 return _choiceId;
78 }
79
80 public void setPrimaryKey(long pk) {
81 setChoiceId(pk);
82 }
83
84 public String getUuid() {
85 return _uuid;
86 }
87
88 public void setUuid(String uuid) {
89 _uuid = uuid;
90 }
91
92 public long getChoiceId() {
93 return _choiceId;
94 }
95
96 public void setChoiceId(long choiceId) {
97 _choiceId = choiceId;
98 }
99
100 public long getQuestionId() {
101 return _questionId;
102 }
103
104 public void setQuestionId(long questionId) {
105 _questionId = questionId;
106 }
107
108 public String getName() {
109 return _name;
110 }
111
112 public void setName(String name) {
113 _name = name;
114 }
115
116 public String getDescription() {
117 return _description;
118 }
119
120 public void setDescription(String description) {
121 _description = description;
122 }
123
124 private String _uuid;
125 private long _choiceId;
126 private long _questionId;
127 private String _name;
128 private String _description;
129 }