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.portlet.asset.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, specifically {@link com.liferay.portlet.asset.service.http.AssetTagPropertyServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.asset.service.http.AssetTagPropertyServiceSoap
028     * @generated
029     */
030    public class AssetTagPropertySoap implements Serializable {
031            public static AssetTagPropertySoap toSoapModel(AssetTagProperty model) {
032                    AssetTagPropertySoap soapModel = new AssetTagPropertySoap();
033    
034                    soapModel.setTagPropertyId(model.getTagPropertyId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setUserId(model.getUserId());
037                    soapModel.setUserName(model.getUserName());
038                    soapModel.setCreateDate(model.getCreateDate());
039                    soapModel.setModifiedDate(model.getModifiedDate());
040                    soapModel.setTagId(model.getTagId());
041                    soapModel.setKey(model.getKey());
042                    soapModel.setValue(model.getValue());
043    
044                    return soapModel;
045            }
046    
047            public static AssetTagPropertySoap[] toSoapModels(AssetTagProperty[] models) {
048                    AssetTagPropertySoap[] soapModels = new AssetTagPropertySoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static AssetTagPropertySoap[][] toSoapModels(
058                    AssetTagProperty[][] models) {
059                    AssetTagPropertySoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new AssetTagPropertySoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new AssetTagPropertySoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static AssetTagPropertySoap[] toSoapModels(
076                    List<AssetTagProperty> models) {
077                    List<AssetTagPropertySoap> soapModels = new ArrayList<AssetTagPropertySoap>(models.size());
078    
079                    for (AssetTagProperty model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new AssetTagPropertySoap[soapModels.size()]);
084            }
085    
086            public AssetTagPropertySoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _tagPropertyId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setTagPropertyId(pk);
095            }
096    
097            public long getTagPropertyId() {
098                    return _tagPropertyId;
099            }
100    
101            public void setTagPropertyId(long tagPropertyId) {
102                    _tagPropertyId = tagPropertyId;
103            }
104    
105            public long getCompanyId() {
106                    return _companyId;
107            }
108    
109            public void setCompanyId(long companyId) {
110                    _companyId = companyId;
111            }
112    
113            public long getUserId() {
114                    return _userId;
115            }
116    
117            public void setUserId(long userId) {
118                    _userId = userId;
119            }
120    
121            public String getUserName() {
122                    return _userName;
123            }
124    
125            public void setUserName(String userName) {
126                    _userName = userName;
127            }
128    
129            public Date getCreateDate() {
130                    return _createDate;
131            }
132    
133            public void setCreateDate(Date createDate) {
134                    _createDate = createDate;
135            }
136    
137            public Date getModifiedDate() {
138                    return _modifiedDate;
139            }
140    
141            public void setModifiedDate(Date modifiedDate) {
142                    _modifiedDate = modifiedDate;
143            }
144    
145            public long getTagId() {
146                    return _tagId;
147            }
148    
149            public void setTagId(long tagId) {
150                    _tagId = tagId;
151            }
152    
153            public String getKey() {
154                    return _key;
155            }
156    
157            public void setKey(String key) {
158                    _key = key;
159            }
160    
161            public String getValue() {
162                    return _value;
163            }
164    
165            public void setValue(String value) {
166                    _value = value;
167            }
168    
169            private long _tagPropertyId;
170            private long _companyId;
171            private long _userId;
172            private String _userName;
173            private Date _createDate;
174            private Date _modifiedDate;
175            private long _tagId;
176            private String _key;
177            private String _value;
178    }