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.journal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * This class is used by SOAP remote services.
024     *
025     * @author Brian Wing Shun Chan
026     * @generated
027     */
028    public class JournalArticleImageSoap implements Serializable {
029            public static JournalArticleImageSoap toSoapModel(JournalArticleImage model) {
030                    JournalArticleImageSoap soapModel = new JournalArticleImageSoap();
031    
032                    soapModel.setArticleImageId(model.getArticleImageId());
033                    soapModel.setGroupId(model.getGroupId());
034                    soapModel.setArticleId(model.getArticleId());
035                    soapModel.setVersion(model.getVersion());
036                    soapModel.setElInstanceId(model.getElInstanceId());
037                    soapModel.setElName(model.getElName());
038                    soapModel.setLanguageId(model.getLanguageId());
039                    soapModel.setTempImage(model.getTempImage());
040    
041                    return soapModel;
042            }
043    
044            public static JournalArticleImageSoap[] toSoapModels(
045                    JournalArticleImage[] models) {
046                    JournalArticleImageSoap[] soapModels = new JournalArticleImageSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static JournalArticleImageSoap[][] toSoapModels(
056                    JournalArticleImage[][] models) {
057                    JournalArticleImageSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new JournalArticleImageSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new JournalArticleImageSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static JournalArticleImageSoap[] toSoapModels(
074                    List<JournalArticleImage> models) {
075                    List<JournalArticleImageSoap> soapModels = new ArrayList<JournalArticleImageSoap>(models.size());
076    
077                    for (JournalArticleImage model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new JournalArticleImageSoap[soapModels.size()]);
082            }
083    
084            public JournalArticleImageSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _articleImageId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setArticleImageId(pk);
093            }
094    
095            public long getArticleImageId() {
096                    return _articleImageId;
097            }
098    
099            public void setArticleImageId(long articleImageId) {
100                    _articleImageId = articleImageId;
101            }
102    
103            public long getGroupId() {
104                    return _groupId;
105            }
106    
107            public void setGroupId(long groupId) {
108                    _groupId = groupId;
109            }
110    
111            public String getArticleId() {
112                    return _articleId;
113            }
114    
115            public void setArticleId(String articleId) {
116                    _articleId = articleId;
117            }
118    
119            public double getVersion() {
120                    return _version;
121            }
122    
123            public void setVersion(double version) {
124                    _version = version;
125            }
126    
127            public String getElInstanceId() {
128                    return _elInstanceId;
129            }
130    
131            public void setElInstanceId(String elInstanceId) {
132                    _elInstanceId = elInstanceId;
133            }
134    
135            public String getElName() {
136                    return _elName;
137            }
138    
139            public void setElName(String elName) {
140                    _elName = elName;
141            }
142    
143            public String getLanguageId() {
144                    return _languageId;
145            }
146    
147            public void setLanguageId(String languageId) {
148                    _languageId = languageId;
149            }
150    
151            public boolean getTempImage() {
152                    return _tempImage;
153            }
154    
155            public boolean isTempImage() {
156                    return _tempImage;
157            }
158    
159            public void setTempImage(boolean tempImage) {
160                    _tempImage = tempImage;
161            }
162    
163            private long _articleImageId;
164            private long _groupId;
165            private String _articleId;
166            private double _version;
167            private String _elInstanceId;
168            private String _elName;
169            private String _languageId;
170            private boolean _tempImage;
171    }