1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="TagsPropertySoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * {@link com.liferay.portlet.tags.service.http.TagsPropertyServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.tags.service.http.TagsPropertyServiceSoap
46   * @generated
47   */
48  public class TagsPropertySoap implements Serializable {
49      public static TagsPropertySoap toSoapModel(TagsProperty model) {
50          TagsPropertySoap soapModel = new TagsPropertySoap();
51  
52          soapModel.setPropertyId(model.getPropertyId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setUserName(model.getUserName());
56          soapModel.setCreateDate(model.getCreateDate());
57          soapModel.setModifiedDate(model.getModifiedDate());
58          soapModel.setEntryId(model.getEntryId());
59          soapModel.setKey(model.getKey());
60          soapModel.setValue(model.getValue());
61  
62          return soapModel;
63      }
64  
65      public static TagsPropertySoap[] toSoapModels(TagsProperty[] models) {
66          TagsPropertySoap[] soapModels = new TagsPropertySoap[models.length];
67  
68          for (int i = 0; i < models.length; i++) {
69              soapModels[i] = toSoapModel(models[i]);
70          }
71  
72          return soapModels;
73      }
74  
75      public static TagsPropertySoap[][] toSoapModels(TagsProperty[][] models) {
76          TagsPropertySoap[][] soapModels = null;
77  
78          if (models.length > 0) {
79              soapModels = new TagsPropertySoap[models.length][models[0].length];
80          }
81          else {
82              soapModels = new TagsPropertySoap[0][0];
83          }
84  
85          for (int i = 0; i < models.length; i++) {
86              soapModels[i] = toSoapModels(models[i]);
87          }
88  
89          return soapModels;
90      }
91  
92      public static TagsPropertySoap[] toSoapModels(List<TagsProperty> models) {
93          List<TagsPropertySoap> soapModels = new ArrayList<TagsPropertySoap>(models.size());
94  
95          for (TagsProperty model : models) {
96              soapModels.add(toSoapModel(model));
97          }
98  
99          return soapModels.toArray(new TagsPropertySoap[soapModels.size()]);
100     }
101 
102     public TagsPropertySoap() {
103     }
104 
105     public long getPrimaryKey() {
106         return _propertyId;
107     }
108 
109     public void setPrimaryKey(long pk) {
110         setPropertyId(pk);
111     }
112 
113     public long getPropertyId() {
114         return _propertyId;
115     }
116 
117     public void setPropertyId(long propertyId) {
118         _propertyId = propertyId;
119     }
120 
121     public long getCompanyId() {
122         return _companyId;
123     }
124 
125     public void setCompanyId(long companyId) {
126         _companyId = companyId;
127     }
128 
129     public long getUserId() {
130         return _userId;
131     }
132 
133     public void setUserId(long userId) {
134         _userId = userId;
135     }
136 
137     public String getUserName() {
138         return _userName;
139     }
140 
141     public void setUserName(String userName) {
142         _userName = userName;
143     }
144 
145     public Date getCreateDate() {
146         return _createDate;
147     }
148 
149     public void setCreateDate(Date createDate) {
150         _createDate = createDate;
151     }
152 
153     public Date getModifiedDate() {
154         return _modifiedDate;
155     }
156 
157     public void setModifiedDate(Date modifiedDate) {
158         _modifiedDate = modifiedDate;
159     }
160 
161     public long getEntryId() {
162         return _entryId;
163     }
164 
165     public void setEntryId(long entryId) {
166         _entryId = entryId;
167     }
168 
169     public String getKey() {
170         return _key;
171     }
172 
173     public void setKey(String key) {
174         _key = key;
175     }
176 
177     public String getValue() {
178         return _value;
179     }
180 
181     public void setValue(String value) {
182         _value = value;
183     }
184 
185     private long _propertyId;
186     private long _companyId;
187     private long _userId;
188     private String _userName;
189     private Date _createDate;
190     private Date _modifiedDate;
191     private long _entryId;
192     private String _key;
193     private String _value;
194 }