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, specifically {@link com.liferay.portal.service.http.EmailAddressServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portal.service.http.EmailAddressServiceSoap
028     * @generated
029     */
030    public class EmailAddressSoap implements Serializable {
031            public static EmailAddressSoap toSoapModel(EmailAddress model) {
032                    EmailAddressSoap soapModel = new EmailAddressSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setEmailAddressId(model.getEmailAddressId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setClassNameId(model.getClassNameId());
042                    soapModel.setClassPK(model.getClassPK());
043                    soapModel.setAddress(model.getAddress());
044                    soapModel.setTypeId(model.getTypeId());
045                    soapModel.setPrimary(model.getPrimary());
046    
047                    return soapModel;
048            }
049    
050            public static EmailAddressSoap[] toSoapModels(EmailAddress[] models) {
051                    EmailAddressSoap[] soapModels = new EmailAddressSoap[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 EmailAddressSoap[][] toSoapModels(EmailAddress[][] models) {
061                    EmailAddressSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new EmailAddressSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new EmailAddressSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static EmailAddressSoap[] toSoapModels(List<EmailAddress> models) {
078                    List<EmailAddressSoap> soapModels = new ArrayList<EmailAddressSoap>(models.size());
079    
080                    for (EmailAddress model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new EmailAddressSoap[soapModels.size()]);
085            }
086    
087            public EmailAddressSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _emailAddressId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setEmailAddressId(pk);
096            }
097    
098            public String getUuid() {
099                    return _uuid;
100            }
101    
102            public void setUuid(String uuid) {
103                    _uuid = uuid;
104            }
105    
106            public long getEmailAddressId() {
107                    return _emailAddressId;
108            }
109    
110            public void setEmailAddressId(long emailAddressId) {
111                    _emailAddressId = emailAddressId;
112            }
113    
114            public long getCompanyId() {
115                    return _companyId;
116            }
117    
118            public void setCompanyId(long companyId) {
119                    _companyId = companyId;
120            }
121    
122            public long getUserId() {
123                    return _userId;
124            }
125    
126            public void setUserId(long userId) {
127                    _userId = userId;
128            }
129    
130            public String getUserName() {
131                    return _userName;
132            }
133    
134            public void setUserName(String userName) {
135                    _userName = userName;
136            }
137    
138            public Date getCreateDate() {
139                    return _createDate;
140            }
141    
142            public void setCreateDate(Date createDate) {
143                    _createDate = createDate;
144            }
145    
146            public Date getModifiedDate() {
147                    return _modifiedDate;
148            }
149    
150            public void setModifiedDate(Date modifiedDate) {
151                    _modifiedDate = modifiedDate;
152            }
153    
154            public long getClassNameId() {
155                    return _classNameId;
156            }
157    
158            public void setClassNameId(long classNameId) {
159                    _classNameId = classNameId;
160            }
161    
162            public long getClassPK() {
163                    return _classPK;
164            }
165    
166            public void setClassPK(long classPK) {
167                    _classPK = classPK;
168            }
169    
170            public String getAddress() {
171                    return _address;
172            }
173    
174            public void setAddress(String address) {
175                    _address = address;
176            }
177    
178            public int getTypeId() {
179                    return _typeId;
180            }
181    
182            public void setTypeId(int typeId) {
183                    _typeId = typeId;
184            }
185    
186            public boolean getPrimary() {
187                    return _primary;
188            }
189    
190            public boolean isPrimary() {
191                    return _primary;
192            }
193    
194            public void setPrimary(boolean primary) {
195                    _primary = primary;
196            }
197    
198            private String _uuid;
199            private long _emailAddressId;
200            private long _companyId;
201            private long _userId;
202            private String _userName;
203            private Date _createDate;
204            private Date _modifiedDate;
205            private long _classNameId;
206            private long _classPK;
207            private String _address;
208            private int _typeId;
209            private boolean _primary;
210    }