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.portal.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="ReleaseSoap.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.portal.service.http.ReleaseServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portal.service.http.ReleaseServiceSoap
46   * @generated
47   */
48  public class ReleaseSoap implements Serializable {
49      public static ReleaseSoap toSoapModel(Release model) {
50          ReleaseSoap soapModel = new ReleaseSoap();
51  
52          soapModel.setReleaseId(model.getReleaseId());
53          soapModel.setCreateDate(model.getCreateDate());
54          soapModel.setModifiedDate(model.getModifiedDate());
55          soapModel.setBuildNumber(model.getBuildNumber());
56          soapModel.setBuildDate(model.getBuildDate());
57          soapModel.setVerified(model.getVerified());
58          soapModel.setTestString(model.getTestString());
59  
60          return soapModel;
61      }
62  
63      public static ReleaseSoap[] toSoapModels(Release[] models) {
64          ReleaseSoap[] soapModels = new ReleaseSoap[models.length];
65  
66          for (int i = 0; i < models.length; i++) {
67              soapModels[i] = toSoapModel(models[i]);
68          }
69  
70          return soapModels;
71      }
72  
73      public static ReleaseSoap[][] toSoapModels(Release[][] models) {
74          ReleaseSoap[][] soapModels = null;
75  
76          if (models.length > 0) {
77              soapModels = new ReleaseSoap[models.length][models[0].length];
78          }
79          else {
80              soapModels = new ReleaseSoap[0][0];
81          }
82  
83          for (int i = 0; i < models.length; i++) {
84              soapModels[i] = toSoapModels(models[i]);
85          }
86  
87          return soapModels;
88      }
89  
90      public static ReleaseSoap[] toSoapModels(List<Release> models) {
91          List<ReleaseSoap> soapModels = new ArrayList<ReleaseSoap>(models.size());
92  
93          for (Release model : models) {
94              soapModels.add(toSoapModel(model));
95          }
96  
97          return soapModels.toArray(new ReleaseSoap[soapModels.size()]);
98      }
99  
100     public ReleaseSoap() {
101     }
102 
103     public long getPrimaryKey() {
104         return _releaseId;
105     }
106 
107     public void setPrimaryKey(long pk) {
108         setReleaseId(pk);
109     }
110 
111     public long getReleaseId() {
112         return _releaseId;
113     }
114 
115     public void setReleaseId(long releaseId) {
116         _releaseId = releaseId;
117     }
118 
119     public Date getCreateDate() {
120         return _createDate;
121     }
122 
123     public void setCreateDate(Date createDate) {
124         _createDate = createDate;
125     }
126 
127     public Date getModifiedDate() {
128         return _modifiedDate;
129     }
130 
131     public void setModifiedDate(Date modifiedDate) {
132         _modifiedDate = modifiedDate;
133     }
134 
135     public int getBuildNumber() {
136         return _buildNumber;
137     }
138 
139     public void setBuildNumber(int buildNumber) {
140         _buildNumber = buildNumber;
141     }
142 
143     public Date getBuildDate() {
144         return _buildDate;
145     }
146 
147     public void setBuildDate(Date buildDate) {
148         _buildDate = buildDate;
149     }
150 
151     public boolean getVerified() {
152         return _verified;
153     }
154 
155     public boolean isVerified() {
156         return _verified;
157     }
158 
159     public void setVerified(boolean verified) {
160         _verified = verified;
161     }
162 
163     public String getTestString() {
164         return _testString;
165     }
166 
167     public void setTestString(String testString) {
168         _testString = testString;
169     }
170 
171     private long _releaseId;
172     private Date _createDate;
173     private Date _modifiedDate;
174     private int _buildNumber;
175     private Date _buildDate;
176     private boolean _verified;
177     private String _testString;
178 }