001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.asset.service.http.AssetTagPropertyServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.asset.service.http.AssetTagPropertyServiceSoap
031     * @generated
032     */
033    public class AssetTagPropertySoap implements Serializable {
034            public static AssetTagPropertySoap toSoapModel(AssetTagProperty model) {
035                    AssetTagPropertySoap soapModel = new AssetTagPropertySoap();
036    
037                    soapModel.setTagPropertyId(model.getTagPropertyId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setUserName(model.getUserName());
041                    soapModel.setCreateDate(model.getCreateDate());
042                    soapModel.setModifiedDate(model.getModifiedDate());
043                    soapModel.setTagId(model.getTagId());
044                    soapModel.setKey(model.getKey());
045                    soapModel.setValue(model.getValue());
046    
047                    return soapModel;
048            }
049    
050            public static AssetTagPropertySoap[] toSoapModels(AssetTagProperty[] models) {
051                    AssetTagPropertySoap[] soapModels = new AssetTagPropertySoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static AssetTagPropertySoap[][] toSoapModels(
061                    AssetTagProperty[][] models) {
062                    AssetTagPropertySoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new AssetTagPropertySoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new AssetTagPropertySoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static AssetTagPropertySoap[] toSoapModels(
079                    List<AssetTagProperty> models) {
080                    List<AssetTagPropertySoap> soapModels = new ArrayList<AssetTagPropertySoap>(models.size());
081    
082                    for (AssetTagProperty model : models) {
083                            soapModels.add(toSoapModel(model));
084                    }
085    
086                    return soapModels.toArray(new AssetTagPropertySoap[soapModels.size()]);
087            }
088    
089            public AssetTagPropertySoap() {
090            }
091    
092            public long getPrimaryKey() {
093                    return _tagPropertyId;
094            }
095    
096            public void setPrimaryKey(long pk) {
097                    setTagPropertyId(pk);
098            }
099    
100            public long getTagPropertyId() {
101                    return _tagPropertyId;
102            }
103    
104            public void setTagPropertyId(long tagPropertyId) {
105                    _tagPropertyId = tagPropertyId;
106            }
107    
108            public long getCompanyId() {
109                    return _companyId;
110            }
111    
112            public void setCompanyId(long companyId) {
113                    _companyId = companyId;
114            }
115    
116            public long getUserId() {
117                    return _userId;
118            }
119    
120            public void setUserId(long userId) {
121                    _userId = userId;
122            }
123    
124            public String getUserName() {
125                    return _userName;
126            }
127    
128            public void setUserName(String userName) {
129                    _userName = userName;
130            }
131    
132            public Date getCreateDate() {
133                    return _createDate;
134            }
135    
136            public void setCreateDate(Date createDate) {
137                    _createDate = createDate;
138            }
139    
140            public Date getModifiedDate() {
141                    return _modifiedDate;
142            }
143    
144            public void setModifiedDate(Date modifiedDate) {
145                    _modifiedDate = modifiedDate;
146            }
147    
148            public long getTagId() {
149                    return _tagId;
150            }
151    
152            public void setTagId(long tagId) {
153                    _tagId = tagId;
154            }
155    
156            public String getKey() {
157                    return _key;
158            }
159    
160            public void setKey(String key) {
161                    _key = key;
162            }
163    
164            public String getValue() {
165                    return _value;
166            }
167    
168            public void setValue(String value) {
169                    _value = value;
170            }
171    
172            private long _tagPropertyId;
173            private long _companyId;
174            private long _userId;
175            private String _userName;
176            private Date _createDate;
177            private Date _modifiedDate;
178            private long _tagId;
179            private String _key;
180            private String _value;
181    }