001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.AddressServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portal.service.http.AddressServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class AddressSoap implements Serializable {
034            public static AddressSoap toSoapModel(Address model) {
035                    AddressSoap soapModel = new AddressSoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setUuid(model.getUuid());
039                    soapModel.setAddressId(model.getAddressId());
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.setClassNameId(model.getClassNameId());
046                    soapModel.setClassPK(model.getClassPK());
047                    soapModel.setStreet1(model.getStreet1());
048                    soapModel.setStreet2(model.getStreet2());
049                    soapModel.setStreet3(model.getStreet3());
050                    soapModel.setCity(model.getCity());
051                    soapModel.setZip(model.getZip());
052                    soapModel.setRegionId(model.getRegionId());
053                    soapModel.setCountryId(model.getCountryId());
054                    soapModel.setTypeId(model.getTypeId());
055                    soapModel.setMailing(model.getMailing());
056                    soapModel.setPrimary(model.getPrimary());
057    
058                    return soapModel;
059            }
060    
061            public static AddressSoap[] toSoapModels(Address[] models) {
062                    AddressSoap[] soapModels = new AddressSoap[models.length];
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModel(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static AddressSoap[][] toSoapModels(Address[][] models) {
072                    AddressSoap[][] soapModels = null;
073    
074                    if (models.length > 0) {
075                            soapModels = new AddressSoap[models.length][models[0].length];
076                    }
077                    else {
078                            soapModels = new AddressSoap[0][0];
079                    }
080    
081                    for (int i = 0; i < models.length; i++) {
082                            soapModels[i] = toSoapModels(models[i]);
083                    }
084    
085                    return soapModels;
086            }
087    
088            public static AddressSoap[] toSoapModels(List<Address> models) {
089                    List<AddressSoap> soapModels = new ArrayList<AddressSoap>(models.size());
090    
091                    for (Address model : models) {
092                            soapModels.add(toSoapModel(model));
093                    }
094    
095                    return soapModels.toArray(new AddressSoap[soapModels.size()]);
096            }
097    
098            public AddressSoap() {
099            }
100    
101            public long getPrimaryKey() {
102                    return _addressId;
103            }
104    
105            public void setPrimaryKey(long pk) {
106                    setAddressId(pk);
107            }
108    
109            public long getMvccVersion() {
110                    return _mvccVersion;
111            }
112    
113            public void setMvccVersion(long mvccVersion) {
114                    _mvccVersion = mvccVersion;
115            }
116    
117            public String getUuid() {
118                    return _uuid;
119            }
120    
121            public void setUuid(String uuid) {
122                    _uuid = uuid;
123            }
124    
125            public long getAddressId() {
126                    return _addressId;
127            }
128    
129            public void setAddressId(long addressId) {
130                    _addressId = addressId;
131            }
132    
133            public long getCompanyId() {
134                    return _companyId;
135            }
136    
137            public void setCompanyId(long companyId) {
138                    _companyId = companyId;
139            }
140    
141            public long getUserId() {
142                    return _userId;
143            }
144    
145            public void setUserId(long userId) {
146                    _userId = userId;
147            }
148    
149            public String getUserName() {
150                    return _userName;
151            }
152    
153            public void setUserName(String userName) {
154                    _userName = userName;
155            }
156    
157            public Date getCreateDate() {
158                    return _createDate;
159            }
160    
161            public void setCreateDate(Date createDate) {
162                    _createDate = createDate;
163            }
164    
165            public Date getModifiedDate() {
166                    return _modifiedDate;
167            }
168    
169            public void setModifiedDate(Date modifiedDate) {
170                    _modifiedDate = modifiedDate;
171            }
172    
173            public long getClassNameId() {
174                    return _classNameId;
175            }
176    
177            public void setClassNameId(long classNameId) {
178                    _classNameId = classNameId;
179            }
180    
181            public long getClassPK() {
182                    return _classPK;
183            }
184    
185            public void setClassPK(long classPK) {
186                    _classPK = classPK;
187            }
188    
189            public String getStreet1() {
190                    return _street1;
191            }
192    
193            public void setStreet1(String street1) {
194                    _street1 = street1;
195            }
196    
197            public String getStreet2() {
198                    return _street2;
199            }
200    
201            public void setStreet2(String street2) {
202                    _street2 = street2;
203            }
204    
205            public String getStreet3() {
206                    return _street3;
207            }
208    
209            public void setStreet3(String street3) {
210                    _street3 = street3;
211            }
212    
213            public String getCity() {
214                    return _city;
215            }
216    
217            public void setCity(String city) {
218                    _city = city;
219            }
220    
221            public String getZip() {
222                    return _zip;
223            }
224    
225            public void setZip(String zip) {
226                    _zip = zip;
227            }
228    
229            public long getRegionId() {
230                    return _regionId;
231            }
232    
233            public void setRegionId(long regionId) {
234                    _regionId = regionId;
235            }
236    
237            public long getCountryId() {
238                    return _countryId;
239            }
240    
241            public void setCountryId(long countryId) {
242                    _countryId = countryId;
243            }
244    
245            public long getTypeId() {
246                    return _typeId;
247            }
248    
249            public void setTypeId(long typeId) {
250                    _typeId = typeId;
251            }
252    
253            public boolean getMailing() {
254                    return _mailing;
255            }
256    
257            public boolean isMailing() {
258                    return _mailing;
259            }
260    
261            public void setMailing(boolean mailing) {
262                    _mailing = mailing;
263            }
264    
265            public boolean getPrimary() {
266                    return _primary;
267            }
268    
269            public boolean isPrimary() {
270                    return _primary;
271            }
272    
273            public void setPrimary(boolean primary) {
274                    _primary = primary;
275            }
276    
277            private long _mvccVersion;
278            private String _uuid;
279            private long _addressId;
280            private long _companyId;
281            private long _userId;
282            private String _userName;
283            private Date _createDate;
284            private Date _modifiedDate;
285            private long _classNameId;
286            private long _classPK;
287            private String _street1;
288            private String _street2;
289            private String _street3;
290            private String _city;
291            private String _zip;
292            private long _regionId;
293            private long _countryId;
294            private long _typeId;
295            private boolean _mailing;
296            private boolean _primary;
297    }