001
014
015 package com.liferay.portal.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
031 @ProviderType
032 public class CountrySoap implements Serializable {
033 public static CountrySoap toSoapModel(Country model) {
034 CountrySoap soapModel = new CountrySoap();
035
036 soapModel.setMvccVersion(model.getMvccVersion());
037 soapModel.setCountryId(model.getCountryId());
038 soapModel.setName(model.getName());
039 soapModel.setA2(model.getA2());
040 soapModel.setA3(model.getA3());
041 soapModel.setNumber(model.getNumber());
042 soapModel.setIdd(model.getIdd());
043 soapModel.setZipRequired(model.getZipRequired());
044 soapModel.setActive(model.getActive());
045
046 return soapModel;
047 }
048
049 public static CountrySoap[] toSoapModels(Country[] models) {
050 CountrySoap[] soapModels = new CountrySoap[models.length];
051
052 for (int i = 0; i < models.length; i++) {
053 soapModels[i] = toSoapModel(models[i]);
054 }
055
056 return soapModels;
057 }
058
059 public static CountrySoap[][] toSoapModels(Country[][] models) {
060 CountrySoap[][] soapModels = null;
061
062 if (models.length > 0) {
063 soapModels = new CountrySoap[models.length][models[0].length];
064 }
065 else {
066 soapModels = new CountrySoap[0][0];
067 }
068
069 for (int i = 0; i < models.length; i++) {
070 soapModels[i] = toSoapModels(models[i]);
071 }
072
073 return soapModels;
074 }
075
076 public static CountrySoap[] toSoapModels(List<Country> models) {
077 List<CountrySoap> soapModels = new ArrayList<CountrySoap>(models.size());
078
079 for (Country model : models) {
080 soapModels.add(toSoapModel(model));
081 }
082
083 return soapModels.toArray(new CountrySoap[soapModels.size()]);
084 }
085
086 public CountrySoap() {
087 }
088
089 public long getPrimaryKey() {
090 return _countryId;
091 }
092
093 public void setPrimaryKey(long pk) {
094 setCountryId(pk);
095 }
096
097 public long getMvccVersion() {
098 return _mvccVersion;
099 }
100
101 public void setMvccVersion(long mvccVersion) {
102 _mvccVersion = mvccVersion;
103 }
104
105 public long getCountryId() {
106 return _countryId;
107 }
108
109 public void setCountryId(long countryId) {
110 _countryId = countryId;
111 }
112
113 public String getName() {
114 return _name;
115 }
116
117 public void setName(String name) {
118 _name = name;
119 }
120
121 public String getA2() {
122 return _a2;
123 }
124
125 public void setA2(String a2) {
126 _a2 = a2;
127 }
128
129 public String getA3() {
130 return _a3;
131 }
132
133 public void setA3(String a3) {
134 _a3 = a3;
135 }
136
137 public String getNumber() {
138 return _number;
139 }
140
141 public void setNumber(String number) {
142 _number = number;
143 }
144
145 public String getIdd() {
146 return _idd;
147 }
148
149 public void setIdd(String idd) {
150 _idd = idd;
151 }
152
153 public boolean getZipRequired() {
154 return _zipRequired;
155 }
156
157 public boolean isZipRequired() {
158 return _zipRequired;
159 }
160
161 public void setZipRequired(boolean zipRequired) {
162 _zipRequired = zipRequired;
163 }
164
165 public boolean getActive() {
166 return _active;
167 }
168
169 public boolean isActive() {
170 return _active;
171 }
172
173 public void setActive(boolean active) {
174 _active = active;
175 }
176
177 private long _mvccVersion;
178 private long _countryId;
179 private String _name;
180 private String _a2;
181 private String _a3;
182 private String _number;
183 private String _idd;
184 private boolean _zipRequired;
185 private boolean _active;
186 }