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.portlet.asset.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class AssetTagStatsSoap implements Serializable {
032            public static AssetTagStatsSoap toSoapModel(AssetTagStats model) {
033                    AssetTagStatsSoap soapModel = new AssetTagStatsSoap();
034    
035                    soapModel.setTagStatsId(model.getTagStatsId());
036                    soapModel.setTagId(model.getTagId());
037                    soapModel.setClassNameId(model.getClassNameId());
038                    soapModel.setAssetCount(model.getAssetCount());
039    
040                    return soapModel;
041            }
042    
043            public static AssetTagStatsSoap[] toSoapModels(AssetTagStats[] models) {
044                    AssetTagStatsSoap[] soapModels = new AssetTagStatsSoap[models.length];
045    
046                    for (int i = 0; i < models.length; i++) {
047                            soapModels[i] = toSoapModel(models[i]);
048                    }
049    
050                    return soapModels;
051            }
052    
053            public static AssetTagStatsSoap[][] toSoapModels(AssetTagStats[][] models) {
054                    AssetTagStatsSoap[][] soapModels = null;
055    
056                    if (models.length > 0) {
057                            soapModels = new AssetTagStatsSoap[models.length][models[0].length];
058                    }
059                    else {
060                            soapModels = new AssetTagStatsSoap[0][0];
061                    }
062    
063                    for (int i = 0; i < models.length; i++) {
064                            soapModels[i] = toSoapModels(models[i]);
065                    }
066    
067                    return soapModels;
068            }
069    
070            public static AssetTagStatsSoap[] toSoapModels(List<AssetTagStats> models) {
071                    List<AssetTagStatsSoap> soapModels = new ArrayList<AssetTagStatsSoap>(models.size());
072    
073                    for (AssetTagStats model : models) {
074                            soapModels.add(toSoapModel(model));
075                    }
076    
077                    return soapModels.toArray(new AssetTagStatsSoap[soapModels.size()]);
078            }
079    
080            public AssetTagStatsSoap() {
081            }
082    
083            public long getPrimaryKey() {
084                    return _tagStatsId;
085            }
086    
087            public void setPrimaryKey(long pk) {
088                    setTagStatsId(pk);
089            }
090    
091            public long getTagStatsId() {
092                    return _tagStatsId;
093            }
094    
095            public void setTagStatsId(long tagStatsId) {
096                    _tagStatsId = tagStatsId;
097            }
098    
099            public long getTagId() {
100                    return _tagId;
101            }
102    
103            public void setTagId(long tagId) {
104                    _tagId = tagId;
105            }
106    
107            public long getClassNameId() {
108                    return _classNameId;
109            }
110    
111            public void setClassNameId(long classNameId) {
112                    _classNameId = classNameId;
113            }
114    
115            public int getAssetCount() {
116                    return _assetCount;
117            }
118    
119            public void setAssetCount(int assetCount) {
120                    _assetCount = assetCount;
121            }
122    
123            private long _tagStatsId;
124            private long _tagId;
125            private long _classNameId;
126            private int _assetCount;
127    }