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.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.setUuid(model.getUuid());
034                    soapModel.setLayoutPrototypeId(model.getLayoutPrototypeId());
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 LayoutPrototypeSoap[] toSoapModels(LayoutPrototype[] models) {
045                    LayoutPrototypeSoap[] soapModels = new LayoutPrototypeSoap[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 LayoutPrototypeSoap[][] toSoapModels(
055                    LayoutPrototype[][] models) {
056                    LayoutPrototypeSoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new LayoutPrototypeSoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new LayoutPrototypeSoap[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 LayoutPrototypeSoap[] toSoapModels(
073                    List<LayoutPrototype> models) {
074                    List<LayoutPrototypeSoap> soapModels = new ArrayList<LayoutPrototypeSoap>(models.size());
075    
076                    for (LayoutPrototype model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new LayoutPrototypeSoap[soapModels.size()]);
081            }
082    
083            public LayoutPrototypeSoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _layoutPrototypeId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setLayoutPrototypeId(pk);
092            }
093    
094            public String getUuid() {
095                    return _uuid;
096            }
097    
098            public void setUuid(String uuid) {
099                    _uuid = uuid;
100            }
101    
102            public long getLayoutPrototypeId() {
103                    return _layoutPrototypeId;
104            }
105    
106            public void setLayoutPrototypeId(long layoutPrototypeId) {
107                    _layoutPrototypeId = layoutPrototypeId;
108            }
109    
110            public long getCompanyId() {
111                    return _companyId;
112            }
113    
114            public void setCompanyId(long companyId) {
115                    _companyId = companyId;
116            }
117    
118            public String getName() {
119                    return _name;
120            }
121    
122            public void setName(String name) {
123                    _name = name;
124            }
125    
126            public String getDescription() {
127                    return _description;
128            }
129    
130            public void setDescription(String description) {
131                    _description = description;
132            }
133    
134            public String getSettings() {
135                    return _settings;
136            }
137    
138            public void setSettings(String settings) {
139                    _settings = settings;
140            }
141    
142            public boolean getActive() {
143                    return _active;
144            }
145    
146            public boolean isActive() {
147                    return _active;
148            }
149    
150            public void setActive(boolean active) {
151                    _active = active;
152            }
153    
154            private String _uuid;
155            private long _layoutPrototypeId;
156            private long _companyId;
157            private String _name;
158            private String _description;
159            private String _settings;
160            private boolean _active;
161    }