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.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.setLayoutSetPrototypeId(model.getLayoutSetPrototypeId());
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 LayoutSetPrototypeSoap[] toSoapModels(
044                    LayoutSetPrototype[] models) {
045                    LayoutSetPrototypeSoap[] soapModels = new LayoutSetPrototypeSoap[models.length];
046    
047                    for (int i = 0; i < models.length; i++) {
048                            soapModels[i] = toSoapModel(models[i]);
049                    }
050    
051                    return soapModels;
052            }
053    
054            public static LayoutSetPrototypeSoap[][] toSoapModels(
055                    LayoutSetPrototype[][] models) {
056                    LayoutSetPrototypeSoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new LayoutSetPrototypeSoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new LayoutSetPrototypeSoap[0][0];
063                    }
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModels(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static LayoutSetPrototypeSoap[] toSoapModels(
073                    List<LayoutSetPrototype> models) {
074                    List<LayoutSetPrototypeSoap> soapModels = new ArrayList<LayoutSetPrototypeSoap>(models.size());
075    
076                    for (LayoutSetPrototype model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new LayoutSetPrototypeSoap[soapModels.size()]);
081            }
082    
083            public LayoutSetPrototypeSoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _layoutSetPrototypeId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setLayoutSetPrototypeId(pk);
092            }
093    
094            public long getLayoutSetPrototypeId() {
095                    return _layoutSetPrototypeId;
096            }
097    
098            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
099                    _layoutSetPrototypeId = layoutSetPrototypeId;
100            }
101    
102            public long getCompanyId() {
103                    return _companyId;
104            }
105    
106            public void setCompanyId(long companyId) {
107                    _companyId = companyId;
108            }
109    
110            public String getName() {
111                    return _name;
112            }
113    
114            public void setName(String name) {
115                    _name = name;
116            }
117    
118            public String getDescription() {
119                    return _description;
120            }
121    
122            public void setDescription(String description) {
123                    _description = description;
124            }
125    
126            public String getSettings() {
127                    return _settings;
128            }
129    
130            public void setSettings(String settings) {
131                    _settings = settings;
132            }
133    
134            public boolean getActive() {
135                    return _active;
136            }
137    
138            public boolean isActive() {
139                    return _active;
140            }
141    
142            public void setActive(boolean active) {
143                    _active = active;
144            }
145    
146            private long _layoutSetPrototypeId;
147            private long _companyId;
148            private String _name;
149            private String _description;
150            private String _settings;
151            private boolean _active;
152    }