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