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.List;
027:
028: /**
029: * <a href="ListTypeSoap.java.html"><b><i>View Source</i></b></a>
030: *
031: * <p>
032: * ServiceBuilder generated this class. Modifications in this class will be
033: * overwritten the next time is generated.
034: * </p>
035: *
036: * <p>
037: * This class is used by
038: * <code>com.liferay.portal.service.http.ListTypeServiceSoap</code>.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portal.service.http.ListTypeServiceSoap
044: *
045: */
046: public class ListTypeSoap implements Serializable {
047: public static ListTypeSoap toSoapModel(ListType model) {
048: ListTypeSoap soapModel = new ListTypeSoap();
049:
050: soapModel.setListTypeId(model.getListTypeId());
051: soapModel.setName(model.getName());
052: soapModel.setType(model.getType());
053:
054: return soapModel;
055: }
056:
057: public static ListTypeSoap[] toSoapModels(List models) {
058: List soapModels = new ArrayList(models.size());
059:
060: for (int i = 0; i < models.size(); i++) {
061: ListType model = (ListType) models.get(i);
062:
063: soapModels.add(toSoapModel(model));
064: }
065:
066: return (ListTypeSoap[]) soapModels.toArray(new ListTypeSoap[0]);
067: }
068:
069: public ListTypeSoap() {
070: }
071:
072: public int getPrimaryKey() {
073: return _listTypeId;
074: }
075:
076: public void setPrimaryKey(int pk) {
077: setListTypeId(pk);
078: }
079:
080: public int getListTypeId() {
081: return _listTypeId;
082: }
083:
084: public void setListTypeId(int listTypeId) {
085: _listTypeId = listTypeId;
086: }
087:
088: public String getName() {
089: return _name;
090: }
091:
092: public void setName(String name) {
093: _name = name;
094: }
095:
096: public String getType() {
097: return _type;
098: }
099:
100: public void setType(String type) {
101: _type = type;
102: }
103:
104: private int _listTypeId;
105: private String _name;
106: private String _type;
107: }
|