001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="ImageSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portal.service.http.ImageServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.ImageServiceSoap
045: *
046: */
047: public class ImageSoap implements Serializable {
048: public static ImageSoap toSoapModel(Image model) {
049: ImageSoap soapModel = new ImageSoap();
050:
051: soapModel.setImageId(model.getImageId());
052: soapModel.setModifiedDate(model.getModifiedDate());
053: soapModel.setText(model.getText());
054: soapModel.setType(model.getType());
055: soapModel.setHeight(model.getHeight());
056: soapModel.setWidth(model.getWidth());
057: soapModel.setSize(model.getSize());
058:
059: return soapModel;
060: }
061:
062: public static ImageSoap[] toSoapModels(List models) {
063: List soapModels = new ArrayList(models.size());
064:
065: for (int i = 0; i < models.size(); i++) {
066: Image model = (Image) models.get(i);
067:
068: soapModels.add(toSoapModel(model));
069: }
070:
071: return (ImageSoap[]) soapModels.toArray(new ImageSoap[0]);
072: }
073:
074: public ImageSoap() {
075: }
076:
077: public long getPrimaryKey() {
078: return _imageId;
079: }
080:
081: public void setPrimaryKey(long pk) {
082: setImageId(pk);
083: }
084:
085: public long getImageId() {
086: return _imageId;
087: }
088:
089: public void setImageId(long imageId) {
090: _imageId = imageId;
091: }
092:
093: public Date getModifiedDate() {
094: return _modifiedDate;
095: }
096:
097: public void setModifiedDate(Date modifiedDate) {
098: _modifiedDate = modifiedDate;
099: }
100:
101: public String getText() {
102: return _text;
103: }
104:
105: public void setText(String text) {
106: _text = text;
107: }
108:
109: public String getType() {
110: return _type;
111: }
112:
113: public void setType(String type) {
114: _type = type;
115: }
116:
117: public int getHeight() {
118: return _height;
119: }
120:
121: public void setHeight(int height) {
122: _height = height;
123: }
124:
125: public int getWidth() {
126: return _width;
127: }
128:
129: public void setWidth(int width) {
130: _width = width;
131: }
132:
133: public int getSize() {
134: return _size;
135: }
136:
137: public void setSize(int size) {
138: _size = size;
139: }
140:
141: private long _imageId;
142: private Date _modifiedDate;
143: private String _text;
144: private String _type;
145: private int _height;
146: private int _width;
147: private int _size;
148: }
|