001    /**
002     * Copyright (c) 2000-2011 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     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.LayoutPrototypeServiceSoap}.
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       com.liferay.portal.service.http.LayoutPrototypeServiceSoap
027     * @generated
028     */
029    public class LayoutPrototypeSoap implements Serializable {
030            public static LayoutPrototypeSoap toSoapModel(LayoutPrototype model) {
031                    LayoutPrototypeSoap soapModel = new LayoutPrototypeSoap();
032    
033                    soapModel.setLayoutPrototypeId(model.getLayoutPrototypeId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setName(model.getName());
036                    soapModel.setDescription(model.getDescription());
037                    soapModel.setSettings(model.getSettings());
038                    soapModel.setActive(model.getActive());
039    
040                    return soapModel;
041            }
042    
043            public static LayoutPrototypeSoap[] toSoapModels(LayoutPrototype[] models) {
044                    LayoutPrototypeSoap[] soapModels = new LayoutPrototypeSoap[models.length];
045    
046                    for (int i = 0; i < models.length; i++) {
047                            soapModels[i] = toSoapModel(models[i]);
048                    }
049    
050                    return soapModels;
051            }
052    
053            public static LayoutPrototypeSoap[][] toSoapModels(
054                    LayoutPrototype[][] models) {
055                    LayoutPrototypeSoap[][] soapModels = null;
056    
057                    if (models.length > 0) {
058                            soapModels = new LayoutPrototypeSoap[models.length][models[0].length];
059                    }
060                    else {
061                            soapModels = new LayoutPrototypeSoap[0][0];
062                    }
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModels(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static LayoutPrototypeSoap[] toSoapModels(
072                    List<LayoutPrototype> models) {
073                    List<LayoutPrototypeSoap> soapModels = new ArrayList<LayoutPrototypeSoap>(models.size());
074    
075                    for (LayoutPrototype model : models) {
076                            soapModels.add(toSoapModel(model));
077                    }
078    
079                    return soapModels.toArray(new LayoutPrototypeSoap[soapModels.size()]);
080            }
081    
082            public LayoutPrototypeSoap() {
083            }
084    
085            public long getPrimaryKey() {
086                    return _layoutPrototypeId;
087            }
088    
089            public void setPrimaryKey(long pk) {
090                    setLayoutPrototypeId(pk);
091            }
092    
093            public long getLayoutPrototypeId() {
094                    return _layoutPrototypeId;
095            }
096    
097            public void setLayoutPrototypeId(long layoutPrototypeId) {
098                    _layoutPrototypeId = layoutPrototypeId;
099            }
100    
101            public long getCompanyId() {
102                    return _companyId;
103            }
104    
105            public void setCompanyId(long companyId) {
106                    _companyId = companyId;
107            }
108    
109            public String getName() {
110                    return _name;
111            }
112    
113            public void setName(String name) {
114                    _name = name;
115            }
116    
117            public String getDescription() {
118                    return _description;
119            }
120    
121            public void setDescription(String description) {
122                    _description = description;
123            }
124    
125            public String getSettings() {
126                    return _settings;
127            }
128    
129            public void setSettings(String settings) {
130                    _settings = settings;
131            }
132    
133            public boolean getActive() {
134                    return _active;
135            }
136    
137            public boolean isActive() {
138                    return _active;
139            }
140    
141            public void setActive(boolean active) {
142                    _active = active;
143            }
144    
145            private long _layoutPrototypeId;
146            private long _companyId;
147            private String _name;
148            private String _description;
149            private String _settings;
150            private boolean _active;
151    }