001    /**
002     * Copyright (c) 2000-2013 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.portal.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     * This class is used by SOAP remote services.
025     *
026     * @author    Brian Wing Shun Chan
027     * @generated
028     */
029    public class WebDAVPropsSoap implements Serializable {
030            public static WebDAVPropsSoap toSoapModel(WebDAVProps model) {
031                    WebDAVPropsSoap soapModel = new WebDAVPropsSoap();
032    
033                    soapModel.setWebDavPropsId(model.getWebDavPropsId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setCreateDate(model.getCreateDate());
036                    soapModel.setModifiedDate(model.getModifiedDate());
037                    soapModel.setClassNameId(model.getClassNameId());
038                    soapModel.setClassPK(model.getClassPK());
039                    soapModel.setProps(model.getProps());
040    
041                    return soapModel;
042            }
043    
044            public static WebDAVPropsSoap[] toSoapModels(WebDAVProps[] models) {
045                    WebDAVPropsSoap[] soapModels = new WebDAVPropsSoap[models.length];
046    
047                    for (int i = 0; i < models.length; i++) {
048                            soapModels[i] = toSoapModel(models[i]);
049                    }
050    
051                    return soapModels;
052            }
053    
054            public static WebDAVPropsSoap[][] toSoapModels(WebDAVProps[][] models) {
055                    WebDAVPropsSoap[][] soapModels = null;
056    
057                    if (models.length > 0) {
058                            soapModels = new WebDAVPropsSoap[models.length][models[0].length];
059                    }
060                    else {
061                            soapModels = new WebDAVPropsSoap[0][0];
062                    }
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModels(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static WebDAVPropsSoap[] toSoapModels(List<WebDAVProps> models) {
072                    List<WebDAVPropsSoap> soapModels = new ArrayList<WebDAVPropsSoap>(models.size());
073    
074                    for (WebDAVProps model : models) {
075                            soapModels.add(toSoapModel(model));
076                    }
077    
078                    return soapModels.toArray(new WebDAVPropsSoap[soapModels.size()]);
079            }
080    
081            public WebDAVPropsSoap() {
082            }
083    
084            public long getPrimaryKey() {
085                    return _webDavPropsId;
086            }
087    
088            public void setPrimaryKey(long pk) {
089                    setWebDavPropsId(pk);
090            }
091    
092            public long getWebDavPropsId() {
093                    return _webDavPropsId;
094            }
095    
096            public void setWebDavPropsId(long webDavPropsId) {
097                    _webDavPropsId = webDavPropsId;
098            }
099    
100            public long getCompanyId() {
101                    return _companyId;
102            }
103    
104            public void setCompanyId(long companyId) {
105                    _companyId = companyId;
106            }
107    
108            public Date getCreateDate() {
109                    return _createDate;
110            }
111    
112            public void setCreateDate(Date createDate) {
113                    _createDate = createDate;
114            }
115    
116            public Date getModifiedDate() {
117                    return _modifiedDate;
118            }
119    
120            public void setModifiedDate(Date modifiedDate) {
121                    _modifiedDate = modifiedDate;
122            }
123    
124            public long getClassNameId() {
125                    return _classNameId;
126            }
127    
128            public void setClassNameId(long classNameId) {
129                    _classNameId = classNameId;
130            }
131    
132            public long getClassPK() {
133                    return _classPK;
134            }
135    
136            public void setClassPK(long classPK) {
137                    _classPK = classPK;
138            }
139    
140            public String getProps() {
141                    return _props;
142            }
143    
144            public void setProps(String props) {
145                    _props = props;
146            }
147    
148            private long _webDavPropsId;
149            private long _companyId;
150            private Date _createDate;
151            private Date _modifiedDate;
152            private long _classNameId;
153            private long _classPK;
154            private String _props;
155    }