001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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     * <p>
024     * This class is used by
025     * {@link com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap
030     * @generated
031     */
032    public class LayoutSetPrototypeSoap implements Serializable {
033            public static LayoutSetPrototypeSoap toSoapModel(LayoutSetPrototype model) {
034                    LayoutSetPrototypeSoap soapModel = new LayoutSetPrototypeSoap();
035    
036                    soapModel.setLayoutSetPrototypeId(model.getLayoutSetPrototypeId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setName(model.getName());
039                    soapModel.setDescription(model.getDescription());
040                    soapModel.setSettings(model.getSettings());
041                    soapModel.setActive(model.getActive());
042    
043                    return soapModel;
044            }
045    
046            public static LayoutSetPrototypeSoap[] toSoapModels(
047                    LayoutSetPrototype[] models) {
048                    LayoutSetPrototypeSoap[] soapModels = new LayoutSetPrototypeSoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static LayoutSetPrototypeSoap[][] toSoapModels(
058                    LayoutSetPrototype[][] models) {
059                    LayoutSetPrototypeSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new LayoutSetPrototypeSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new LayoutSetPrototypeSoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static LayoutSetPrototypeSoap[] toSoapModels(
076                    List<LayoutSetPrototype> models) {
077                    List<LayoutSetPrototypeSoap> soapModels = new ArrayList<LayoutSetPrototypeSoap>(models.size());
078    
079                    for (LayoutSetPrototype model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new LayoutSetPrototypeSoap[soapModels.size()]);
084            }
085    
086            public LayoutSetPrototypeSoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _layoutSetPrototypeId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setLayoutSetPrototypeId(pk);
095            }
096    
097            public long getLayoutSetPrototypeId() {
098                    return _layoutSetPrototypeId;
099            }
100    
101            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
102                    _layoutSetPrototypeId = layoutSetPrototypeId;
103            }
104    
105            public long getCompanyId() {
106                    return _companyId;
107            }
108    
109            public void setCompanyId(long companyId) {
110                    _companyId = companyId;
111            }
112    
113            public String getName() {
114                    return _name;
115            }
116    
117            public void setName(String name) {
118                    _name = name;
119            }
120    
121            public String getDescription() {
122                    return _description;
123            }
124    
125            public void setDescription(String description) {
126                    _description = description;
127            }
128    
129            public String getSettings() {
130                    return _settings;
131            }
132    
133            public void setSettings(String settings) {
134                    _settings = settings;
135            }
136    
137            public boolean getActive() {
138                    return _active;
139            }
140    
141            public boolean isActive() {
142                    return _active;
143            }
144    
145            public void setActive(boolean active) {
146                    _active = active;
147            }
148    
149            private long _layoutSetPrototypeId;
150            private long _companyId;
151            private String _name;
152            private String _description;
153            private String _settings;
154            private boolean _active;
155    }