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.portal.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="WebDAVPropsSoap.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.portal.service.http.WebDAVPropsServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portal.service.http.WebDAVPropsServiceSoap
38   * @generated
39   */
40  public class WebDAVPropsSoap implements Serializable {
41      public static WebDAVPropsSoap toSoapModel(WebDAVProps model) {
42          WebDAVPropsSoap soapModel = new WebDAVPropsSoap();
43  
44          soapModel.setWebDavPropsId(model.getWebDavPropsId());
45          soapModel.setCompanyId(model.getCompanyId());
46          soapModel.setCreateDate(model.getCreateDate());
47          soapModel.setModifiedDate(model.getModifiedDate());
48          soapModel.setClassNameId(model.getClassNameId());
49          soapModel.setClassPK(model.getClassPK());
50          soapModel.setProps(model.getProps());
51  
52          return soapModel;
53      }
54  
55      public static WebDAVPropsSoap[] toSoapModels(WebDAVProps[] models) {
56          WebDAVPropsSoap[] soapModels = new WebDAVPropsSoap[models.length];
57  
58          for (int i = 0; i < models.length; i++) {
59              soapModels[i] = toSoapModel(models[i]);
60          }
61  
62          return soapModels;
63      }
64  
65      public static WebDAVPropsSoap[][] toSoapModels(WebDAVProps[][] models) {
66          WebDAVPropsSoap[][] soapModels = null;
67  
68          if (models.length > 0) {
69              soapModels = new WebDAVPropsSoap[models.length][models[0].length];
70          }
71          else {
72              soapModels = new WebDAVPropsSoap[0][0];
73          }
74  
75          for (int i = 0; i < models.length; i++) {
76              soapModels[i] = toSoapModels(models[i]);
77          }
78  
79          return soapModels;
80      }
81  
82      public static WebDAVPropsSoap[] toSoapModels(List<WebDAVProps> models) {
83          List<WebDAVPropsSoap> soapModels = new ArrayList<WebDAVPropsSoap>(models.size());
84  
85          for (WebDAVProps model : models) {
86              soapModels.add(toSoapModel(model));
87          }
88  
89          return soapModels.toArray(new WebDAVPropsSoap[soapModels.size()]);
90      }
91  
92      public WebDAVPropsSoap() {
93      }
94  
95      public long getPrimaryKey() {
96          return _webDavPropsId;
97      }
98  
99      public void setPrimaryKey(long pk) {
100         setWebDavPropsId(pk);
101     }
102 
103     public long getWebDavPropsId() {
104         return _webDavPropsId;
105     }
106 
107     public void setWebDavPropsId(long webDavPropsId) {
108         _webDavPropsId = webDavPropsId;
109     }
110 
111     public long getCompanyId() {
112         return _companyId;
113     }
114 
115     public void setCompanyId(long companyId) {
116         _companyId = companyId;
117     }
118 
119     public Date getCreateDate() {
120         return _createDate;
121     }
122 
123     public void setCreateDate(Date createDate) {
124         _createDate = createDate;
125     }
126 
127     public Date getModifiedDate() {
128         return _modifiedDate;
129     }
130 
131     public void setModifiedDate(Date modifiedDate) {
132         _modifiedDate = modifiedDate;
133     }
134 
135     public long getClassNameId() {
136         return _classNameId;
137     }
138 
139     public void setClassNameId(long classNameId) {
140         _classNameId = classNameId;
141     }
142 
143     public long getClassPK() {
144         return _classPK;
145     }
146 
147     public void setClassPK(long classPK) {
148         _classPK = classPK;
149     }
150 
151     public String getProps() {
152         return _props;
153     }
154 
155     public void setProps(String props) {
156         _props = props;
157     }
158 
159     private long _webDavPropsId;
160     private long _companyId;
161     private Date _createDate;
162     private Date _modifiedDate;
163     private long _classNameId;
164     private long _classPK;
165     private String _props;
166 }