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="AssetTagPropertySoap.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.AssetTagPropertyServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.asset.service.http.AssetTagPropertyServiceSoap
38   * @generated
39   */
40  public class AssetTagPropertySoap implements Serializable {
41      public static AssetTagPropertySoap toSoapModel(AssetTagProperty model) {
42          AssetTagPropertySoap soapModel = new AssetTagPropertySoap();
43  
44          soapModel.setTagPropertyId(model.getTagPropertyId());
45          soapModel.setCompanyId(model.getCompanyId());
46          soapModel.setUserId(model.getUserId());
47          soapModel.setUserName(model.getUserName());
48          soapModel.setCreateDate(model.getCreateDate());
49          soapModel.setModifiedDate(model.getModifiedDate());
50          soapModel.setTagId(model.getTagId());
51          soapModel.setKey(model.getKey());
52          soapModel.setValue(model.getValue());
53  
54          return soapModel;
55      }
56  
57      public static AssetTagPropertySoap[] toSoapModels(AssetTagProperty[] models) {
58          AssetTagPropertySoap[] soapModels = new AssetTagPropertySoap[models.length];
59  
60          for (int i = 0; i < models.length; i++) {
61              soapModels[i] = toSoapModel(models[i]);
62          }
63  
64          return soapModels;
65      }
66  
67      public static AssetTagPropertySoap[][] toSoapModels(
68          AssetTagProperty[][] models) {
69          AssetTagPropertySoap[][] soapModels = null;
70  
71          if (models.length > 0) {
72              soapModels = new AssetTagPropertySoap[models.length][models[0].length];
73          }
74          else {
75              soapModels = new AssetTagPropertySoap[0][0];
76          }
77  
78          for (int i = 0; i < models.length; i++) {
79              soapModels[i] = toSoapModels(models[i]);
80          }
81  
82          return soapModels;
83      }
84  
85      public static AssetTagPropertySoap[] toSoapModels(
86          List<AssetTagProperty> models) {
87          List<AssetTagPropertySoap> soapModels = new ArrayList<AssetTagPropertySoap>(models.size());
88  
89          for (AssetTagProperty model : models) {
90              soapModels.add(toSoapModel(model));
91          }
92  
93          return soapModels.toArray(new AssetTagPropertySoap[soapModels.size()]);
94      }
95  
96      public AssetTagPropertySoap() {
97      }
98  
99      public long getPrimaryKey() {
100         return _tagPropertyId;
101     }
102 
103     public void setPrimaryKey(long pk) {
104         setTagPropertyId(pk);
105     }
106 
107     public long getTagPropertyId() {
108         return _tagPropertyId;
109     }
110 
111     public void setTagPropertyId(long tagPropertyId) {
112         _tagPropertyId = tagPropertyId;
113     }
114 
115     public long getCompanyId() {
116         return _companyId;
117     }
118 
119     public void setCompanyId(long companyId) {
120         _companyId = companyId;
121     }
122 
123     public long getUserId() {
124         return _userId;
125     }
126 
127     public void setUserId(long userId) {
128         _userId = userId;
129     }
130 
131     public String getUserName() {
132         return _userName;
133     }
134 
135     public void setUserName(String userName) {
136         _userName = userName;
137     }
138 
139     public Date getCreateDate() {
140         return _createDate;
141     }
142 
143     public void setCreateDate(Date createDate) {
144         _createDate = createDate;
145     }
146 
147     public Date getModifiedDate() {
148         return _modifiedDate;
149     }
150 
151     public void setModifiedDate(Date modifiedDate) {
152         _modifiedDate = modifiedDate;
153     }
154 
155     public long getTagId() {
156         return _tagId;
157     }
158 
159     public void setTagId(long tagId) {
160         _tagId = tagId;
161     }
162 
163     public String getKey() {
164         return _key;
165     }
166 
167     public void setKey(String key) {
168         _key = key;
169     }
170 
171     public String getValue() {
172         return _value;
173     }
174 
175     public void setValue(String value) {
176         _value = value;
177     }
178 
179     private long _tagPropertyId;
180     private long _companyId;
181     private long _userId;
182     private String _userName;
183     private Date _createDate;
184     private Date _modifiedDate;
185     private long _tagId;
186     private String _key;
187     private String _value;
188 }