1
14
15 package com.liferay.portlet.asset.model;
16
17 import java.io.Serializable;
18
19 import java.util.ArrayList;
20 import java.util.Date;
21 import java.util.List;
22
23
40 public class AssetCategoryPropertySoap implements Serializable {
41 public static AssetCategoryPropertySoap toSoapModel(
42 AssetCategoryProperty model) {
43 AssetCategoryPropertySoap soapModel = new AssetCategoryPropertySoap();
44
45 soapModel.setCategoryPropertyId(model.getCategoryPropertyId());
46 soapModel.setCompanyId(model.getCompanyId());
47 soapModel.setUserId(model.getUserId());
48 soapModel.setUserName(model.getUserName());
49 soapModel.setCreateDate(model.getCreateDate());
50 soapModel.setModifiedDate(model.getModifiedDate());
51 soapModel.setCategoryId(model.getCategoryId());
52 soapModel.setKey(model.getKey());
53 soapModel.setValue(model.getValue());
54
55 return soapModel;
56 }
57
58 public static AssetCategoryPropertySoap[] toSoapModels(
59 AssetCategoryProperty[] models) {
60 AssetCategoryPropertySoap[] soapModels = new AssetCategoryPropertySoap[models.length];
61
62 for (int i = 0; i < models.length; i++) {
63 soapModels[i] = toSoapModel(models[i]);
64 }
65
66 return soapModels;
67 }
68
69 public static AssetCategoryPropertySoap[][] toSoapModels(
70 AssetCategoryProperty[][] models) {
71 AssetCategoryPropertySoap[][] soapModels = null;
72
73 if (models.length > 0) {
74 soapModels = new AssetCategoryPropertySoap[models.length][models[0].length];
75 }
76 else {
77 soapModels = new AssetCategoryPropertySoap[0][0];
78 }
79
80 for (int i = 0; i < models.length; i++) {
81 soapModels[i] = toSoapModels(models[i]);
82 }
83
84 return soapModels;
85 }
86
87 public static AssetCategoryPropertySoap[] toSoapModels(
88 List<AssetCategoryProperty> models) {
89 List<AssetCategoryPropertySoap> soapModels = new ArrayList<AssetCategoryPropertySoap>(models.size());
90
91 for (AssetCategoryProperty model : models) {
92 soapModels.add(toSoapModel(model));
93 }
94
95 return soapModels.toArray(new AssetCategoryPropertySoap[soapModels.size()]);
96 }
97
98 public AssetCategoryPropertySoap() {
99 }
100
101 public long getPrimaryKey() {
102 return _categoryPropertyId;
103 }
104
105 public void setPrimaryKey(long pk) {
106 setCategoryPropertyId(pk);
107 }
108
109 public long getCategoryPropertyId() {
110 return _categoryPropertyId;
111 }
112
113 public void setCategoryPropertyId(long categoryPropertyId) {
114 _categoryPropertyId = categoryPropertyId;
115 }
116
117 public long getCompanyId() {
118 return _companyId;
119 }
120
121 public void setCompanyId(long companyId) {
122 _companyId = companyId;
123 }
124
125 public long getUserId() {
126 return _userId;
127 }
128
129 public void setUserId(long userId) {
130 _userId = userId;
131 }
132
133 public String getUserName() {
134 return _userName;
135 }
136
137 public void setUserName(String userName) {
138 _userName = userName;
139 }
140
141 public Date getCreateDate() {
142 return _createDate;
143 }
144
145 public void setCreateDate(Date createDate) {
146 _createDate = createDate;
147 }
148
149 public Date getModifiedDate() {
150 return _modifiedDate;
151 }
152
153 public void setModifiedDate(Date modifiedDate) {
154 _modifiedDate = modifiedDate;
155 }
156
157 public long getCategoryId() {
158 return _categoryId;
159 }
160
161 public void setCategoryId(long categoryId) {
162 _categoryId = categoryId;
163 }
164
165 public String getKey() {
166 return _key;
167 }
168
169 public void setKey(String key) {
170 _key = key;
171 }
172
173 public String getValue() {
174 return _value;
175 }
176
177 public void setValue(String value) {
178 _value = value;
179 }
180
181 private long _categoryPropertyId;
182 private long _companyId;
183 private long _userId;
184 private String _userName;
185 private Date _createDate;
186 private Date _modifiedDate;
187 private long _categoryId;
188 private String _key;
189 private String _value;
190 }