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.wiki.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="WikiPageResourceSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portlet.wiki.service.http.WikiPageResourceServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.wiki.service.http.WikiPageResourceServiceSoap
37   * @generated
38   */
39  public class WikiPageResourceSoap implements Serializable {
40      public static WikiPageResourceSoap toSoapModel(WikiPageResource model) {
41          WikiPageResourceSoap soapModel = new WikiPageResourceSoap();
42  
43          soapModel.setResourcePrimKey(model.getResourcePrimKey());
44          soapModel.setNodeId(model.getNodeId());
45          soapModel.setTitle(model.getTitle());
46  
47          return soapModel;
48      }
49  
50      public static WikiPageResourceSoap[] toSoapModels(WikiPageResource[] models) {
51          WikiPageResourceSoap[] soapModels = new WikiPageResourceSoap[models.length];
52  
53          for (int i = 0; i < models.length; i++) {
54              soapModels[i] = toSoapModel(models[i]);
55          }
56  
57          return soapModels;
58      }
59  
60      public static WikiPageResourceSoap[][] toSoapModels(
61          WikiPageResource[][] models) {
62          WikiPageResourceSoap[][] soapModels = null;
63  
64          if (models.length > 0) {
65              soapModels = new WikiPageResourceSoap[models.length][models[0].length];
66          }
67          else {
68              soapModels = new WikiPageResourceSoap[0][0];
69          }
70  
71          for (int i = 0; i < models.length; i++) {
72              soapModels[i] = toSoapModels(models[i]);
73          }
74  
75          return soapModels;
76      }
77  
78      public static WikiPageResourceSoap[] toSoapModels(
79          List<WikiPageResource> models) {
80          List<WikiPageResourceSoap> soapModels = new ArrayList<WikiPageResourceSoap>(models.size());
81  
82          for (WikiPageResource model : models) {
83              soapModels.add(toSoapModel(model));
84          }
85  
86          return soapModels.toArray(new WikiPageResourceSoap[soapModels.size()]);
87      }
88  
89      public WikiPageResourceSoap() {
90      }
91  
92      public long getPrimaryKey() {
93          return _resourcePrimKey;
94      }
95  
96      public void setPrimaryKey(long pk) {
97          setResourcePrimKey(pk);
98      }
99  
100     public long getResourcePrimKey() {
101         return _resourcePrimKey;
102     }
103 
104     public void setResourcePrimKey(long resourcePrimKey) {
105         _resourcePrimKey = resourcePrimKey;
106     }
107 
108     public long getNodeId() {
109         return _nodeId;
110     }
111 
112     public void setNodeId(long nodeId) {
113         _nodeId = nodeId;
114     }
115 
116     public String getTitle() {
117         return _title;
118     }
119 
120     public void setTitle(String title) {
121         _title = title;
122     }
123 
124     private long _resourcePrimKey;
125     private long _nodeId;
126     private String _title;
127 }