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.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="LayoutSetPrototypeSoap.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.portal.service.http.LayoutSetPrototypeServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap
37   * @generated
38   */
39  public class LayoutSetPrototypeSoap implements Serializable {
40      public static LayoutSetPrototypeSoap toSoapModel(LayoutSetPrototype model) {
41          LayoutSetPrototypeSoap soapModel = new LayoutSetPrototypeSoap();
42  
43          soapModel.setLayoutSetPrototypeId(model.getLayoutSetPrototypeId());
44          soapModel.setCompanyId(model.getCompanyId());
45          soapModel.setName(model.getName());
46          soapModel.setDescription(model.getDescription());
47          soapModel.setSettings(model.getSettings());
48          soapModel.setActive(model.getActive());
49  
50          return soapModel;
51      }
52  
53      public static LayoutSetPrototypeSoap[] toSoapModels(
54          LayoutSetPrototype[] models) {
55          LayoutSetPrototypeSoap[] soapModels = new LayoutSetPrototypeSoap[models.length];
56  
57          for (int i = 0; i < models.length; i++) {
58              soapModels[i] = toSoapModel(models[i]);
59          }
60  
61          return soapModels;
62      }
63  
64      public static LayoutSetPrototypeSoap[][] toSoapModels(
65          LayoutSetPrototype[][] models) {
66          LayoutSetPrototypeSoap[][] soapModels = null;
67  
68          if (models.length > 0) {
69              soapModels = new LayoutSetPrototypeSoap[models.length][models[0].length];
70          }
71          else {
72              soapModels = new LayoutSetPrototypeSoap[0][0];
73          }
74  
75          for (int i = 0; i < models.length; i++) {
76              soapModels[i] = toSoapModels(models[i]);
77          }
78  
79          return soapModels;
80      }
81  
82      public static LayoutSetPrototypeSoap[] toSoapModels(
83          List<LayoutSetPrototype> models) {
84          List<LayoutSetPrototypeSoap> soapModels = new ArrayList<LayoutSetPrototypeSoap>(models.size());
85  
86          for (LayoutSetPrototype model : models) {
87              soapModels.add(toSoapModel(model));
88          }
89  
90          return soapModels.toArray(new LayoutSetPrototypeSoap[soapModels.size()]);
91      }
92  
93      public LayoutSetPrototypeSoap() {
94      }
95  
96      public long getPrimaryKey() {
97          return _layoutSetPrototypeId;
98      }
99  
100     public void setPrimaryKey(long pk) {
101         setLayoutSetPrototypeId(pk);
102     }
103 
104     public long getLayoutSetPrototypeId() {
105         return _layoutSetPrototypeId;
106     }
107 
108     public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
109         _layoutSetPrototypeId = layoutSetPrototypeId;
110     }
111 
112     public long getCompanyId() {
113         return _companyId;
114     }
115 
116     public void setCompanyId(long companyId) {
117         _companyId = companyId;
118     }
119 
120     public String getName() {
121         return _name;
122     }
123 
124     public void setName(String name) {
125         _name = name;
126     }
127 
128     public String getDescription() {
129         return _description;
130     }
131 
132     public void setDescription(String description) {
133         _description = description;
134     }
135 
136     public String getSettings() {
137         return _settings;
138     }
139 
140     public void setSettings(String settings) {
141         _settings = settings;
142     }
143 
144     public boolean getActive() {
145         return _active;
146     }
147 
148     public boolean isActive() {
149         return _active;
150     }
151 
152     public void setActive(boolean active) {
153         _active = active;
154     }
155 
156     private long _layoutSetPrototypeId;
157     private long _companyId;
158     private String _name;
159     private String _description;
160     private String _settings;
161     private boolean _active;
162 }