1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="JournalStructureSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * {@link com.liferay.portlet.journal.service.http.JournalStructureServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.journal.service.http.JournalStructureServiceSoap
46   * @generated
47   */
48  public class JournalStructureSoap implements Serializable {
49      public static JournalStructureSoap toSoapModel(JournalStructure model) {
50          JournalStructureSoap soapModel = new JournalStructureSoap();
51  
52          soapModel.setUuid(model.getUuid());
53          soapModel.setId(model.getId());
54          soapModel.setGroupId(model.getGroupId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setStructureId(model.getStructureId());
61          soapModel.setName(model.getName());
62          soapModel.setDescription(model.getDescription());
63          soapModel.setXsd(model.getXsd());
64  
65          return soapModel;
66      }
67  
68      public static JournalStructureSoap[] toSoapModels(JournalStructure[] models) {
69          JournalStructureSoap[] soapModels = new JournalStructureSoap[models.length];
70  
71          for (int i = 0; i < models.length; i++) {
72              soapModels[i] = toSoapModel(models[i]);
73          }
74  
75          return soapModels;
76      }
77  
78      public static JournalStructureSoap[][] toSoapModels(
79          JournalStructure[][] models) {
80          JournalStructureSoap[][] soapModels = null;
81  
82          if (models.length > 0) {
83              soapModels = new JournalStructureSoap[models.length][models[0].length];
84          }
85          else {
86              soapModels = new JournalStructureSoap[0][0];
87          }
88  
89          for (int i = 0; i < models.length; i++) {
90              soapModels[i] = toSoapModels(models[i]);
91          }
92  
93          return soapModels;
94      }
95  
96      public static JournalStructureSoap[] toSoapModels(
97          List<JournalStructure> models) {
98          List<JournalStructureSoap> soapModels = new ArrayList<JournalStructureSoap>(models.size());
99  
100         for (JournalStructure model : models) {
101             soapModels.add(toSoapModel(model));
102         }
103 
104         return soapModels.toArray(new JournalStructureSoap[soapModels.size()]);
105     }
106 
107     public JournalStructureSoap() {
108     }
109 
110     public long getPrimaryKey() {
111         return _id;
112     }
113 
114     public void setPrimaryKey(long pk) {
115         setId(pk);
116     }
117 
118     public String getUuid() {
119         return _uuid;
120     }
121 
122     public void setUuid(String uuid) {
123         _uuid = uuid;
124     }
125 
126     public long getId() {
127         return _id;
128     }
129 
130     public void setId(long id) {
131         _id = id;
132     }
133 
134     public long getGroupId() {
135         return _groupId;
136     }
137 
138     public void setGroupId(long groupId) {
139         _groupId = groupId;
140     }
141 
142     public long getCompanyId() {
143         return _companyId;
144     }
145 
146     public void setCompanyId(long companyId) {
147         _companyId = companyId;
148     }
149 
150     public long getUserId() {
151         return _userId;
152     }
153 
154     public void setUserId(long userId) {
155         _userId = userId;
156     }
157 
158     public String getUserName() {
159         return _userName;
160     }
161 
162     public void setUserName(String userName) {
163         _userName = userName;
164     }
165 
166     public Date getCreateDate() {
167         return _createDate;
168     }
169 
170     public void setCreateDate(Date createDate) {
171         _createDate = createDate;
172     }
173 
174     public Date getModifiedDate() {
175         return _modifiedDate;
176     }
177 
178     public void setModifiedDate(Date modifiedDate) {
179         _modifiedDate = modifiedDate;
180     }
181 
182     public String getStructureId() {
183         return _structureId;
184     }
185 
186     public void setStructureId(String structureId) {
187         _structureId = structureId;
188     }
189 
190     public String getName() {
191         return _name;
192     }
193 
194     public void setName(String name) {
195         _name = name;
196     }
197 
198     public String getDescription() {
199         return _description;
200     }
201 
202     public void setDescription(String description) {
203         _description = description;
204     }
205 
206     public String getXsd() {
207         return _xsd;
208     }
209 
210     public void setXsd(String xsd) {
211         _xsd = xsd;
212     }
213 
214     private String _uuid;
215     private long _id;
216     private long _groupId;
217     private long _companyId;
218     private long _userId;
219     private String _userName;
220     private Date _createDate;
221     private Date _modifiedDate;
222     private String _structureId;
223     private String _name;
224     private String _description;
225     private String _xsd;
226 }