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.portlet.asset.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.asset.service.http.AssetCategoryPropertyServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.asset.service.http.AssetCategoryPropertyServiceSoap
028     * @generated
029     */
030    public class AssetCategoryPropertySoap implements Serializable {
031            public static AssetCategoryPropertySoap toSoapModel(
032                    AssetCategoryProperty model) {
033                    AssetCategoryPropertySoap soapModel = new AssetCategoryPropertySoap();
034    
035                    soapModel.setCategoryPropertyId(model.getCategoryPropertyId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setCategoryId(model.getCategoryId());
042                    soapModel.setKey(model.getKey());
043                    soapModel.setValue(model.getValue());
044    
045                    return soapModel;
046            }
047    
048            public static AssetCategoryPropertySoap[] toSoapModels(
049                    AssetCategoryProperty[] models) {
050                    AssetCategoryPropertySoap[] soapModels = new AssetCategoryPropertySoap[models.length];
051    
052                    for (int i = 0; i < models.length; i++) {
053                            soapModels[i] = toSoapModel(models[i]);
054                    }
055    
056                    return soapModels;
057            }
058    
059            public static AssetCategoryPropertySoap[][] toSoapModels(
060                    AssetCategoryProperty[][] models) {
061                    AssetCategoryPropertySoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new AssetCategoryPropertySoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new AssetCategoryPropertySoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static AssetCategoryPropertySoap[] toSoapModels(
078                    List<AssetCategoryProperty> models) {
079                    List<AssetCategoryPropertySoap> soapModels = new ArrayList<AssetCategoryPropertySoap>(models.size());
080    
081                    for (AssetCategoryProperty model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new AssetCategoryPropertySoap[soapModels.size()]);
086            }
087    
088            public AssetCategoryPropertySoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _categoryPropertyId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setCategoryPropertyId(pk);
097            }
098    
099            public long getCategoryPropertyId() {
100                    return _categoryPropertyId;
101            }
102    
103            public void setCategoryPropertyId(long categoryPropertyId) {
104                    _categoryPropertyId = categoryPropertyId;
105            }
106    
107            public long getCompanyId() {
108                    return _companyId;
109            }
110    
111            public void setCompanyId(long companyId) {
112                    _companyId = companyId;
113            }
114    
115            public long getUserId() {
116                    return _userId;
117            }
118    
119            public void setUserId(long userId) {
120                    _userId = userId;
121            }
122    
123            public String getUserName() {
124                    return _userName;
125            }
126    
127            public void setUserName(String userName) {
128                    _userName = userName;
129            }
130    
131            public Date getCreateDate() {
132                    return _createDate;
133            }
134    
135            public void setCreateDate(Date createDate) {
136                    _createDate = createDate;
137            }
138    
139            public Date getModifiedDate() {
140                    return _modifiedDate;
141            }
142    
143            public void setModifiedDate(Date modifiedDate) {
144                    _modifiedDate = modifiedDate;
145            }
146    
147            public long getCategoryId() {
148                    return _categoryId;
149            }
150    
151            public void setCategoryId(long categoryId) {
152                    _categoryId = categoryId;
153            }
154    
155            public String getKey() {
156                    return _key;
157            }
158    
159            public void setKey(String key) {
160                    _key = key;
161            }
162    
163            public String getValue() {
164                    return _value;
165            }
166    
167            public void setValue(String value) {
168                    _value = value;
169            }
170    
171            private long _categoryPropertyId;
172            private long _companyId;
173            private long _userId;
174            private String _userName;
175            private Date _createDate;
176            private Date _modifiedDate;
177            private long _categoryId;
178            private String _key;
179            private String _value;
180    }