4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
8 package com.pentila.evalcomp.moodlews;
10 public class RoleRecord implements java.io.Serializable {
11 private java.lang.String error;
13 private java.math.BigInteger id;
15 private java.lang.String name;
17 private java.lang.String shortname;
19 private java.lang.String description;
21 private java.math.BigInteger sortorder;
27 java.lang.String error,
28 java.math.BigInteger id,
29 java.lang.String name,
30 java.lang.String shortname,
31 java.lang.String description,
32 java.math.BigInteger sortorder) {
36 this.shortname = shortname;
37 this.description = description;
38 this.sortorder = sortorder;
43 * Gets the error value for this RoleRecord.
47 public java.lang.String getError() {
53 * Sets the error value for this RoleRecord.
57 public void setError(java.lang.String error) {
63 * Gets the id value for this RoleRecord.
67 public java.math.BigInteger getId() {
73 * Sets the id value for this RoleRecord.
77 public void setId(java.math.BigInteger id) {
83 * Gets the name value for this RoleRecord.
87 public java.lang.String getName() {
93 * Sets the name value for this RoleRecord.
97 public void setName(java.lang.String name) {
103 * Gets the shortname value for this RoleRecord.
107 public java.lang.String getShortname() {
113 * Sets the shortname value for this RoleRecord.
117 public void setShortname(java.lang.String shortname) {
118 this.shortname = shortname;
123 * Gets the description value for this RoleRecord.
125 * @return description
127 public java.lang.String getDescription() {
133 * Sets the description value for this RoleRecord.
137 public void setDescription(java.lang.String description) {
138 this.description = description;
143 * Gets the sortorder value for this RoleRecord.
147 public java.math.BigInteger getSortorder() {
153 * Sets the sortorder value for this RoleRecord.
157 public void setSortorder(java.math.BigInteger sortorder) {
158 this.sortorder = sortorder;
161 private java.lang.Object __equalsCalc = null;
162 public synchronized boolean equals(java.lang.Object obj) {
163 if (!(obj instanceof RoleRecord)) return false;
164 RoleRecord other = (RoleRecord) obj;
165 if (obj == null) return false;
166 if (this == obj) return true;
167 if (__equalsCalc != null) {
168 return (__equalsCalc == obj);
173 ((this.error==null && other.getError()==null) ||
175 this.error.equals(other.getError()))) &&
176 ((this.id==null && other.getId()==null) ||
178 this.id.equals(other.getId()))) &&
179 ((this.name==null && other.getName()==null) ||
181 this.name.equals(other.getName()))) &&
182 ((this.shortname==null && other.getShortname()==null) ||
183 (this.shortname!=null &&
184 this.shortname.equals(other.getShortname()))) &&
185 ((this.description==null && other.getDescription()==null) ||
186 (this.description!=null &&
187 this.description.equals(other.getDescription()))) &&
188 ((this.sortorder==null && other.getSortorder()==null) ||
189 (this.sortorder!=null &&
190 this.sortorder.equals(other.getSortorder())));
195 private boolean __hashCodeCalc = false;
196 public synchronized int hashCode() {
197 if (__hashCodeCalc) {
200 __hashCodeCalc = true;
202 if (getError() != null) {
203 _hashCode += getError().hashCode();
205 if (getId() != null) {
206 _hashCode += getId().hashCode();
208 if (getName() != null) {
209 _hashCode += getName().hashCode();
211 if (getShortname() != null) {
212 _hashCode += getShortname().hashCode();
214 if (getDescription() != null) {
215 _hashCode += getDescription().hashCode();
217 if (getSortorder() != null) {
218 _hashCode += getSortorder().hashCode();
220 __hashCodeCalc = false;
225 private static org.apache.axis.description.TypeDesc typeDesc =
226 new org.apache.axis.description.TypeDesc(RoleRecord.class, true);
229 typeDesc.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "roleRecord"));
230 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
231 elemField.setFieldName("error");
232 elemField.setXmlName(new javax.xml.namespace.QName("", "error"));
233 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
234 elemField.setNillable(false);
235 typeDesc.addFieldDesc(elemField);
236 elemField = new org.apache.axis.description.ElementDesc();
237 elemField.setFieldName("id");
238 elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
239 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer"));
240 elemField.setNillable(false);
241 typeDesc.addFieldDesc(elemField);
242 elemField = new org.apache.axis.description.ElementDesc();
243 elemField.setFieldName("name");
244 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
245 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
246 elemField.setNillable(false);
247 typeDesc.addFieldDesc(elemField);
248 elemField = new org.apache.axis.description.ElementDesc();
249 elemField.setFieldName("shortname");
250 elemField.setXmlName(new javax.xml.namespace.QName("", "shortname"));
251 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
252 elemField.setNillable(false);
253 typeDesc.addFieldDesc(elemField);
254 elemField = new org.apache.axis.description.ElementDesc();
255 elemField.setFieldName("description");
256 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
257 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
258 elemField.setNillable(false);
259 typeDesc.addFieldDesc(elemField);
260 elemField = new org.apache.axis.description.ElementDesc();
261 elemField.setFieldName("sortorder");
262 elemField.setXmlName(new javax.xml.namespace.QName("", "sortorder"));
263 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer"));
264 elemField.setNillable(false);
265 typeDesc.addFieldDesc(elemField);
269 * Return type metadata object
271 public static org.apache.axis.description.TypeDesc getTypeDesc() {
276 * Get Custom Serializer
278 public static org.apache.axis.encoding.Serializer getSerializer(
279 java.lang.String mechType,
280 java.lang.Class _javaType,
281 javax.xml.namespace.QName _xmlType) {
283 new org.apache.axis.encoding.ser.BeanSerializer(
284 _javaType, _xmlType, typeDesc);
288 * Get Custom Deserializer
290 public static org.apache.axis.encoding.Deserializer getDeserializer(
291 java.lang.String mechType,
292 java.lang.Class _javaType,
293 javax.xml.namespace.QName _xmlType) {
295 new org.apache.axis.encoding.ser.BeanDeserializer(
296 _javaType, _xmlType, typeDesc);