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