001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap
028     * @generated
029     */
030    public class LayoutSetPrototypeSoap implements Serializable {
031            public static LayoutSetPrototypeSoap toSoapModel(LayoutSetPrototype model) {
032                    LayoutSetPrototypeSoap soapModel = new LayoutSetPrototypeSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setLayoutSetPrototypeId(model.getLayoutSetPrototypeId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setCreateDate(model.getCreateDate());
038                    soapModel.setModifiedDate(model.getModifiedDate());
039                    soapModel.setName(model.getName());
040                    soapModel.setDescription(model.getDescription());
041                    soapModel.setSettings(model.getSettings());
042                    soapModel.setActive(model.getActive());
043    
044                    return soapModel;
045            }
046    
047            public static LayoutSetPrototypeSoap[] toSoapModels(
048                    LayoutSetPrototype[] models) {
049                    LayoutSetPrototypeSoap[] soapModels = new LayoutSetPrototypeSoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static LayoutSetPrototypeSoap[][] toSoapModels(
059                    LayoutSetPrototype[][] models) {
060                    LayoutSetPrototypeSoap[][] soapModels = null;
061    
062                    if (models.length > 0) {
063                            soapModels = new LayoutSetPrototypeSoap[models.length][models[0].length];
064                    }
065                    else {
066                            soapModels = new LayoutSetPrototypeSoap[0][0];
067                    }
068    
069                    for (int i = 0; i < models.length; i++) {
070                            soapModels[i] = toSoapModels(models[i]);
071                    }
072    
073                    return soapModels;
074            }
075    
076            public static LayoutSetPrototypeSoap[] toSoapModels(
077                    List<LayoutSetPrototype> models) {
078                    List<LayoutSetPrototypeSoap> soapModels = new ArrayList<LayoutSetPrototypeSoap>(models.size());
079    
080                    for (LayoutSetPrototype model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new LayoutSetPrototypeSoap[soapModels.size()]);
085            }
086    
087            public LayoutSetPrototypeSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _layoutSetPrototypeId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setLayoutSetPrototypeId(pk);
096            }
097    
098            public String getUuid() {
099                    return _uuid;
100            }
101    
102            public void setUuid(String uuid) {
103                    _uuid = uuid;
104            }
105    
106            public long getLayoutSetPrototypeId() {
107                    return _layoutSetPrototypeId;
108            }
109    
110            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
111                    _layoutSetPrototypeId = layoutSetPrototypeId;
112            }
113    
114            public long getCompanyId() {
115                    return _companyId;
116            }
117    
118            public void setCompanyId(long companyId) {
119                    _companyId = companyId;
120            }
121    
122            public Date getCreateDate() {
123                    return _createDate;
124            }
125    
126            public void setCreateDate(Date createDate) {
127                    _createDate = createDate;
128            }
129    
130            public Date getModifiedDate() {
131                    return _modifiedDate;
132            }
133    
134            public void setModifiedDate(Date modifiedDate) {
135                    _modifiedDate = modifiedDate;
136            }
137    
138            public String getName() {
139                    return _name;
140            }
141    
142            public void setName(String name) {
143                    _name = name;
144            }
145    
146            public String getDescription() {
147                    return _description;
148            }
149    
150            public void setDescription(String description) {
151                    _description = description;
152            }
153    
154            public String getSettings() {
155                    return _settings;
156            }
157    
158            public void setSettings(String settings) {
159                    _settings = settings;
160            }
161    
162            public boolean getActive() {
163                    return _active;
164            }
165    
166            public boolean isActive() {
167                    return _active;
168            }
169    
170            public void setActive(boolean active) {
171                    _active = active;
172            }
173    
174            private String _uuid;
175            private long _layoutSetPrototypeId;
176            private long _companyId;
177            private Date _createDate;
178            private Date _modifiedDate;
179            private String _name;
180            private String _description;
181            private String _settings;
182            private boolean _active;
183    }