001    /**
002     * Copyright (c) 2000-2011 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.List;
021    
022    /**
023     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap}.
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap
027     * @generated
028     */
029    public class LayoutSetPrototypeSoap implements Serializable {
030            public static LayoutSetPrototypeSoap toSoapModel(LayoutSetPrototype model) {
031                    LayoutSetPrototypeSoap soapModel = new LayoutSetPrototypeSoap();
032    
033                    soapModel.setUuid(model.getUuid());
034                    soapModel.setLayoutSetPrototypeId(model.getLayoutSetPrototypeId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setName(model.getName());
037                    soapModel.setDescription(model.getDescription());
038                    soapModel.setSettings(model.getSettings());
039                    soapModel.setActive(model.getActive());
040    
041                    return soapModel;
042            }
043    
044            public static LayoutSetPrototypeSoap[] toSoapModels(
045                    LayoutSetPrototype[] models) {
046                    LayoutSetPrototypeSoap[] soapModels = new LayoutSetPrototypeSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static LayoutSetPrototypeSoap[][] toSoapModels(
056                    LayoutSetPrototype[][] models) {
057                    LayoutSetPrototypeSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new LayoutSetPrototypeSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new LayoutSetPrototypeSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static LayoutSetPrototypeSoap[] toSoapModels(
074                    List<LayoutSetPrototype> models) {
075                    List<LayoutSetPrototypeSoap> soapModels = new ArrayList<LayoutSetPrototypeSoap>(models.size());
076    
077                    for (LayoutSetPrototype model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new LayoutSetPrototypeSoap[soapModels.size()]);
082            }
083    
084            public LayoutSetPrototypeSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _layoutSetPrototypeId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setLayoutSetPrototypeId(pk);
093            }
094    
095            public String getUuid() {
096                    return _uuid;
097            }
098    
099            public void setUuid(String uuid) {
100                    _uuid = uuid;
101            }
102    
103            public long getLayoutSetPrototypeId() {
104                    return _layoutSetPrototypeId;
105            }
106    
107            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
108                    _layoutSetPrototypeId = layoutSetPrototypeId;
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 String _uuid;
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    }