001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.ListTypeServiceSoap}.
026     *
027     * @author Brian Wing Shun Chan
028     * @see com.liferay.portal.service.http.ListTypeServiceSoap
029     * @generated
030     */
031    @ProviderType
032    public class ListTypeSoap implements Serializable {
033            public static ListTypeSoap toSoapModel(ListType model) {
034                    ListTypeSoap soapModel = new ListTypeSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setListTypeId(model.getListTypeId());
038                    soapModel.setName(model.getName());
039                    soapModel.setType(model.getType());
040    
041                    return soapModel;
042            }
043    
044            public static ListTypeSoap[] toSoapModels(ListType[] models) {
045                    ListTypeSoap[] soapModels = new ListTypeSoap[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 ListTypeSoap[][] toSoapModels(ListType[][] models) {
055                    ListTypeSoap[][] soapModels = null;
056    
057                    if (models.length > 0) {
058                            soapModels = new ListTypeSoap[models.length][models[0].length];
059                    }
060                    else {
061                            soapModels = new ListTypeSoap[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 ListTypeSoap[] toSoapModels(List<ListType> models) {
072                    List<ListTypeSoap> soapModels = new ArrayList<ListTypeSoap>(models.size());
073    
074                    for (ListType model : models) {
075                            soapModels.add(toSoapModel(model));
076                    }
077    
078                    return soapModels.toArray(new ListTypeSoap[soapModels.size()]);
079            }
080    
081            public ListTypeSoap() {
082            }
083    
084            public long getPrimaryKey() {
085                    return _listTypeId;
086            }
087    
088            public void setPrimaryKey(long pk) {
089                    setListTypeId(pk);
090            }
091    
092            public long getMvccVersion() {
093                    return _mvccVersion;
094            }
095    
096            public void setMvccVersion(long mvccVersion) {
097                    _mvccVersion = mvccVersion;
098            }
099    
100            public long getListTypeId() {
101                    return _listTypeId;
102            }
103    
104            public void setListTypeId(long listTypeId) {
105                    _listTypeId = listTypeId;
106            }
107    
108            public String getName() {
109                    return _name;
110            }
111    
112            public void setName(String name) {
113                    _name = name;
114            }
115    
116            public String getType() {
117                    return _type;
118            }
119    
120            public void setType(String type) {
121                    _type = type;
122            }
123    
124            private long _mvccVersion;
125            private long _listTypeId;
126            private String _name;
127            private String _type;
128    }