1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.setUuid(model.getUuid());
44          soapModel.setResourcePrimKey(model.getResourcePrimKey());
45          soapModel.setNodeId(model.getNodeId());
46          soapModel.setTitle(model.getTitle());
47  
48          return soapModel;
49      }
50  
51      public static WikiPageResourceSoap[] toSoapModels(WikiPageResource[] models) {
52          WikiPageResourceSoap[] soapModels = new WikiPageResourceSoap[models.length];
53  
54          for (int i = 0; i < models.length; i++) {
55              soapModels[i] = toSoapModel(models[i]);
56          }
57  
58          return soapModels;
59      }
60  
61      public static WikiPageResourceSoap[][] toSoapModels(
62          WikiPageResource[][] models) {
63          WikiPageResourceSoap[][] soapModels = null;
64  
65          if (models.length > 0) {
66              soapModels = new WikiPageResourceSoap[models.length][models[0].length];
67          }
68          else {
69              soapModels = new WikiPageResourceSoap[0][0];
70          }
71  
72          for (int i = 0; i < models.length; i++) {
73              soapModels[i] = toSoapModels(models[i]);
74          }
75  
76          return soapModels;
77      }
78  
79      public static WikiPageResourceSoap[] toSoapModels(
80          List<WikiPageResource> models) {
81          List<WikiPageResourceSoap> soapModels = new ArrayList<WikiPageResourceSoap>(models.size());
82  
83          for (WikiPageResource model : models) {
84              soapModels.add(toSoapModel(model));
85          }
86  
87          return soapModels.toArray(new WikiPageResourceSoap[soapModels.size()]);
88      }
89  
90      public WikiPageResourceSoap() {
91      }
92  
93      public long getPrimaryKey() {
94          return _resourcePrimKey;
95      }
96  
97      public void setPrimaryKey(long pk) {
98          setResourcePrimKey(pk);
99      }
100 
101     public String getUuid() {
102         return _uuid;
103     }
104 
105     public void setUuid(String uuid) {
106         _uuid = uuid;
107     }
108 
109     public long getResourcePrimKey() {
110         return _resourcePrimKey;
111     }
112 
113     public void setResourcePrimKey(long resourcePrimKey) {
114         _resourcePrimKey = resourcePrimKey;
115     }
116 
117     public long getNodeId() {
118         return _nodeId;
119     }
120 
121     public void setNodeId(long nodeId) {
122         _nodeId = nodeId;
123     }
124 
125     public String getTitle() {
126         return _title;
127     }
128 
129     public void setTitle(String title) {
130         _title = title;
131     }
132 
133     private String _uuid;
134     private long _resourcePrimKey;
135     private long _nodeId;
136     private String _title;
137 }