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.setParentStructureId(model.getParentStructureId());
54          soapModel.setName(model.getName());
55          soapModel.setDescription(model.getDescription());
56          soapModel.setXsd(model.getXsd());
57  
58          return soapModel;
59      }
60  
61      public static JournalStructureSoap[] toSoapModels(JournalStructure[] models) {
62          JournalStructureSoap[] soapModels = new JournalStructureSoap[models.length];
63  
64          for (int i = 0; i < models.length; i++) {
65              soapModels[i] = toSoapModel(models[i]);
66          }
67  
68          return soapModels;
69      }
70  
71      public static JournalStructureSoap[][] toSoapModels(
72          JournalStructure[][] models) {
73          JournalStructureSoap[][] soapModels = null;
74  
75          if (models.length > 0) {
76              soapModels = new JournalStructureSoap[models.length][models[0].length];
77          }
78          else {
79              soapModels = new JournalStructureSoap[0][0];
80          }
81  
82          for (int i = 0; i < models.length; i++) {
83              soapModels[i] = toSoapModels(models[i]);
84          }
85  
86          return soapModels;
87      }
88  
89      public static JournalStructureSoap[] toSoapModels(
90          List<JournalStructure> models) {
91          List<JournalStructureSoap> soapModels = new ArrayList<JournalStructureSoap>(models.size());
92  
93          for (JournalStructure model : models) {
94              soapModels.add(toSoapModel(model));
95          }
96  
97          return soapModels.toArray(new JournalStructureSoap[soapModels.size()]);
98      }
99  
100     public JournalStructureSoap() {
101     }
102 
103     public long getPrimaryKey() {
104         return _id;
105     }
106 
107     public void setPrimaryKey(long pk) {
108         setId(pk);
109     }
110 
111     public String getUuid() {
112         return _uuid;
113     }
114 
115     public void setUuid(String uuid) {
116         _uuid = uuid;
117     }
118 
119     public long getId() {
120         return _id;
121     }
122 
123     public void setId(long id) {
124         _id = id;
125     }
126 
127     public long getGroupId() {
128         return _groupId;
129     }
130 
131     public void setGroupId(long groupId) {
132         _groupId = groupId;
133     }
134 
135     public long getCompanyId() {
136         return _companyId;
137     }
138 
139     public void setCompanyId(long companyId) {
140         _companyId = companyId;
141     }
142 
143     public long getUserId() {
144         return _userId;
145     }
146 
147     public void setUserId(long userId) {
148         _userId = userId;
149     }
150 
151     public String getUserName() {
152         return _userName;
153     }
154 
155     public void setUserName(String userName) {
156         _userName = userName;
157     }
158 
159     public Date getCreateDate() {
160         return _createDate;
161     }
162 
163     public void setCreateDate(Date createDate) {
164         _createDate = createDate;
165     }
166 
167     public Date getModifiedDate() {
168         return _modifiedDate;
169     }
170 
171     public void setModifiedDate(Date modifiedDate) {
172         _modifiedDate = modifiedDate;
173     }
174 
175     public String getStructureId() {
176         return _structureId;
177     }
178 
179     public void setStructureId(String structureId) {
180         _structureId = structureId;
181     }
182 
183     public String getParentStructureId() {
184         return _parentStructureId;
185     }
186 
187     public void setParentStructureId(String parentStructureId) {
188         _parentStructureId = parentStructureId;
189     }
190 
191     public String getName() {
192         return _name;
193     }
194 
195     public void setName(String name) {
196         _name = name;
197     }
198 
199     public String getDescription() {
200         return _description;
201     }
202 
203     public void setDescription(String description) {
204         _description = description;
205     }
206 
207     public String getXsd() {
208         return _xsd;
209     }
210 
211     public void setXsd(String xsd) {
212         _xsd = xsd;
213     }
214 
215     private String _uuid;
216     private long _id;
217     private long _groupId;
218     private long _companyId;
219     private long _userId;
220     private String _userName;
221     private Date _createDate;
222     private Date _modifiedDate;
223     private String _structureId;
224     private String _parentStructureId;
225     private String _name;
226     private String _description;
227     private String _xsd;
228 }