001    /**
002     * Copyright (c) 2000-2010 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     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.asset.service.http.AssetVocabularyServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.asset.service.http.AssetVocabularyServiceSoap
031     * @generated
032     */
033    public class AssetVocabularySoap implements Serializable {
034            public static AssetVocabularySoap toSoapModel(AssetVocabulary model) {
035                    AssetVocabularySoap soapModel = new AssetVocabularySoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setVocabularyId(model.getVocabularyId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setName(model.getName());
046                    soapModel.setTitle(model.getTitle());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setSettings(model.getSettings());
049    
050                    return soapModel;
051            }
052    
053            public static AssetVocabularySoap[] toSoapModels(AssetVocabulary[] models) {
054                    AssetVocabularySoap[] soapModels = new AssetVocabularySoap[models.length];
055    
056                    for (int i = 0; i < models.length; i++) {
057                            soapModels[i] = toSoapModel(models[i]);
058                    }
059    
060                    return soapModels;
061            }
062    
063            public static AssetVocabularySoap[][] toSoapModels(
064                    AssetVocabulary[][] models) {
065                    AssetVocabularySoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new AssetVocabularySoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new AssetVocabularySoap[0][0];
072                    }
073    
074                    for (int i = 0; i < models.length; i++) {
075                            soapModels[i] = toSoapModels(models[i]);
076                    }
077    
078                    return soapModels;
079            }
080    
081            public static AssetVocabularySoap[] toSoapModels(
082                    List<AssetVocabulary> models) {
083                    List<AssetVocabularySoap> soapModels = new ArrayList<AssetVocabularySoap>(models.size());
084    
085                    for (AssetVocabulary model : models) {
086                            soapModels.add(toSoapModel(model));
087                    }
088    
089                    return soapModels.toArray(new AssetVocabularySoap[soapModels.size()]);
090            }
091    
092            public AssetVocabularySoap() {
093            }
094    
095            public long getPrimaryKey() {
096                    return _vocabularyId;
097            }
098    
099            public void setPrimaryKey(long pk) {
100                    setVocabularyId(pk);
101            }
102    
103            public String getUuid() {
104                    return _uuid;
105            }
106    
107            public void setUuid(String uuid) {
108                    _uuid = uuid;
109            }
110    
111            public long getVocabularyId() {
112                    return _vocabularyId;
113            }
114    
115            public void setVocabularyId(long vocabularyId) {
116                    _vocabularyId = vocabularyId;
117            }
118    
119            public long getGroupId() {
120                    return _groupId;
121            }
122    
123            public void setGroupId(long groupId) {
124                    _groupId = groupId;
125            }
126    
127            public long getCompanyId() {
128                    return _companyId;
129            }
130    
131            public void setCompanyId(long companyId) {
132                    _companyId = companyId;
133            }
134    
135            public long getUserId() {
136                    return _userId;
137            }
138    
139            public void setUserId(long userId) {
140                    _userId = userId;
141            }
142    
143            public String getUserName() {
144                    return _userName;
145            }
146    
147            public void setUserName(String userName) {
148                    _userName = userName;
149            }
150    
151            public Date getCreateDate() {
152                    return _createDate;
153            }
154    
155            public void setCreateDate(Date createDate) {
156                    _createDate = createDate;
157            }
158    
159            public Date getModifiedDate() {
160                    return _modifiedDate;
161            }
162    
163            public void setModifiedDate(Date modifiedDate) {
164                    _modifiedDate = modifiedDate;
165            }
166    
167            public String getName() {
168                    return _name;
169            }
170    
171            public void setName(String name) {
172                    _name = name;
173            }
174    
175            public String getTitle() {
176                    return _title;
177            }
178    
179            public void setTitle(String title) {
180                    _title = title;
181            }
182    
183            public String getDescription() {
184                    return _description;
185            }
186    
187            public void setDescription(String description) {
188                    _description = description;
189            }
190    
191            public String getSettings() {
192                    return _settings;
193            }
194    
195            public void setSettings(String settings) {
196                    _settings = settings;
197            }
198    
199            private String _uuid;
200            private long _vocabularyId;
201            private long _groupId;
202            private long _companyId;
203            private long _userId;
204            private String _userName;
205            private Date _createDate;
206            private Date _modifiedDate;
207            private String _name;
208            private String _title;
209            private String _description;
210            private String _settings;
211    }