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