1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="AssetCategoryPropertySoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.asset.service.http.AssetCategoryPropertyServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.asset.service.http.AssetCategoryPropertyServiceSoap
38   * @generated
39   */
40  public class AssetCategoryPropertySoap implements Serializable {
41      public static AssetCategoryPropertySoap toSoapModel(
42          AssetCategoryProperty model) {
43          AssetCategoryPropertySoap soapModel = new AssetCategoryPropertySoap();
44  
45          soapModel.setCategoryPropertyId(model.getCategoryPropertyId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setUserName(model.getUserName());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setCategoryId(model.getCategoryId());
52          soapModel.setKey(model.getKey());
53          soapModel.setValue(model.getValue());
54  
55          return soapModel;
56      }
57  
58      public static AssetCategoryPropertySoap[] toSoapModels(
59          AssetCategoryProperty[] models) {
60          AssetCategoryPropertySoap[] soapModels = new AssetCategoryPropertySoap[models.length];
61  
62          for (int i = 0; i < models.length; i++) {
63              soapModels[i] = toSoapModel(models[i]);
64          }
65  
66          return soapModels;
67      }
68  
69      public static AssetCategoryPropertySoap[][] toSoapModels(
70          AssetCategoryProperty[][] models) {
71          AssetCategoryPropertySoap[][] soapModels = null;
72  
73          if (models.length > 0) {
74              soapModels = new AssetCategoryPropertySoap[models.length][models[0].length];
75          }
76          else {
77              soapModels = new AssetCategoryPropertySoap[0][0];
78          }
79  
80          for (int i = 0; i < models.length; i++) {
81              soapModels[i] = toSoapModels(models[i]);
82          }
83  
84          return soapModels;
85      }
86  
87      public static AssetCategoryPropertySoap[] toSoapModels(
88          List<AssetCategoryProperty> models) {
89          List<AssetCategoryPropertySoap> soapModels = new ArrayList<AssetCategoryPropertySoap>(models.size());
90  
91          for (AssetCategoryProperty model : models) {
92              soapModels.add(toSoapModel(model));
93          }
94  
95          return soapModels.toArray(new AssetCategoryPropertySoap[soapModels.size()]);
96      }
97  
98      public AssetCategoryPropertySoap() {
99      }
100 
101     public long getPrimaryKey() {
102         return _categoryPropertyId;
103     }
104 
105     public void setPrimaryKey(long pk) {
106         setCategoryPropertyId(pk);
107     }
108 
109     public long getCategoryPropertyId() {
110         return _categoryPropertyId;
111     }
112 
113     public void setCategoryPropertyId(long categoryPropertyId) {
114         _categoryPropertyId = categoryPropertyId;
115     }
116 
117     public long getCompanyId() {
118         return _companyId;
119     }
120 
121     public void setCompanyId(long companyId) {
122         _companyId = companyId;
123     }
124 
125     public long getUserId() {
126         return _userId;
127     }
128 
129     public void setUserId(long userId) {
130         _userId = userId;
131     }
132 
133     public String getUserName() {
134         return _userName;
135     }
136 
137     public void setUserName(String userName) {
138         _userName = userName;
139     }
140 
141     public Date getCreateDate() {
142         return _createDate;
143     }
144 
145     public void setCreateDate(Date createDate) {
146         _createDate = createDate;
147     }
148 
149     public Date getModifiedDate() {
150         return _modifiedDate;
151     }
152 
153     public void setModifiedDate(Date modifiedDate) {
154         _modifiedDate = modifiedDate;
155     }
156 
157     public long getCategoryId() {
158         return _categoryId;
159     }
160 
161     public void setCategoryId(long categoryId) {
162         _categoryId = categoryId;
163     }
164 
165     public String getKey() {
166         return _key;
167     }
168 
169     public void setKey(String key) {
170         _key = key;
171     }
172 
173     public String getValue() {
174         return _value;
175     }
176 
177     public void setValue(String value) {
178         _value = value;
179     }
180 
181     private long _categoryPropertyId;
182     private long _companyId;
183     private long _userId;
184     private String _userName;
185     private Date _createDate;
186     private Date _modifiedDate;
187     private long _categoryId;
188     private String _key;
189     private String _value;
190 }