1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.List;
26  
27  /**
28   * <a href="ServiceComponentSoap.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class is used by
37   * <code>com.liferay.portal.service.http.ServiceComponentServiceSoap</code>.
38   * </p>
39   *
40   * @author Brian Wing Shun Chan
41   *
42   * @see com.liferay.portal.service.http.ServiceComponentServiceSoap
43   *
44   */
45  public class ServiceComponentSoap implements Serializable {
46      public static ServiceComponentSoap toSoapModel(ServiceComponent model) {
47          ServiceComponentSoap soapModel = new ServiceComponentSoap();
48  
49          soapModel.setServiceComponentId(model.getServiceComponentId());
50          soapModel.setBuildNamespace(model.getBuildNamespace());
51          soapModel.setBuildNumber(model.getBuildNumber());
52          soapModel.setBuildDate(model.getBuildDate());
53          soapModel.setData(model.getData());
54  
55          return soapModel;
56      }
57  
58      public static ServiceComponentSoap[] toSoapModels(
59          List<ServiceComponent> models) {
60          List<ServiceComponentSoap> soapModels = new ArrayList<ServiceComponentSoap>(models.size());
61  
62          for (ServiceComponent model : models) {
63              soapModels.add(toSoapModel(model));
64          }
65  
66          return soapModels.toArray(new ServiceComponentSoap[soapModels.size()]);
67      }
68  
69      public ServiceComponentSoap() {
70      }
71  
72      public long getPrimaryKey() {
73          return _serviceComponentId;
74      }
75  
76      public void setPrimaryKey(long pk) {
77          setServiceComponentId(pk);
78      }
79  
80      public long getServiceComponentId() {
81          return _serviceComponentId;
82      }
83  
84      public void setServiceComponentId(long serviceComponentId) {
85          _serviceComponentId = serviceComponentId;
86      }
87  
88      public String getBuildNamespace() {
89          return _buildNamespace;
90      }
91  
92      public void setBuildNamespace(String buildNamespace) {
93          _buildNamespace = buildNamespace;
94      }
95  
96      public long getBuildNumber() {
97          return _buildNumber;
98      }
99  
100     public void setBuildNumber(long buildNumber) {
101         _buildNumber = buildNumber;
102     }
103 
104     public long getBuildDate() {
105         return _buildDate;
106     }
107 
108     public void setBuildDate(long buildDate) {
109         _buildDate = buildDate;
110     }
111 
112     public String getData() {
113         return _data;
114     }
115 
116     public void setData(String data) {
117         _data = data;
118     }
119 
120     private long _serviceComponentId;
121     private String _buildNamespace;
122     private long _buildNumber;
123     private long _buildDate;
124     private String _data;
125 }