2 * GetCoursesReturn.java
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 GetCoursesReturn implements java.io.Serializable {
11 private com.pentila.evalcomp.moodlews.CourseRecord[] courses;
13 public GetCoursesReturn() {
16 public GetCoursesReturn(
17 com.pentila.evalcomp.moodlews.CourseRecord[] courses) {
18 this.courses = courses;
23 * Gets the courses value for this GetCoursesReturn.
27 public com.pentila.evalcomp.moodlews.CourseRecord[] getCourses() {
33 * Sets the courses value for this GetCoursesReturn.
37 public void setCourses(com.pentila.evalcomp.moodlews.CourseRecord[] courses) {
38 this.courses = courses;
41 private java.lang.Object __equalsCalc = null;
42 public synchronized boolean equals(java.lang.Object obj) {
43 if (!(obj instanceof GetCoursesReturn)) return false;
44 GetCoursesReturn other = (GetCoursesReturn) obj;
45 if (obj == null) return false;
46 if (this == obj) return true;
47 if (__equalsCalc != null) {
48 return (__equalsCalc == obj);
53 ((this.courses==null && other.getCourses()==null) ||
54 (this.courses!=null &&
55 java.util.Arrays.equals(this.courses, other.getCourses())));
60 private boolean __hashCodeCalc = false;
61 public synchronized int hashCode() {
65 __hashCodeCalc = true;
67 if (getCourses() != null) {
69 i<java.lang.reflect.Array.getLength(getCourses());
71 java.lang.Object obj = java.lang.reflect.Array.get(getCourses(), i);
73 !obj.getClass().isArray()) {
74 _hashCode += obj.hashCode();
78 __hashCodeCalc = false;
83 private static org.apache.axis.description.TypeDesc typeDesc =
84 new org.apache.axis.description.TypeDesc(GetCoursesReturn.class, true);
87 typeDesc.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "getCoursesReturn"));
88 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
89 elemField.setFieldName("courses");
90 elemField.setXmlName(new javax.xml.namespace.QName("", "courses"));
91 elemField.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "courseRecord"));
92 elemField.setNillable(false);
93 typeDesc.addFieldDesc(elemField);
97 * Return type metadata object
99 public static org.apache.axis.description.TypeDesc getTypeDesc() {
104 * Get Custom Serializer
106 public static org.apache.axis.encoding.Serializer getSerializer(
107 java.lang.String mechType,
108 java.lang.Class _javaType,
109 javax.xml.namespace.QName _xmlType) {
111 new org.apache.axis.encoding.ser.BeanSerializer(
112 _javaType, _xmlType, typeDesc);
116 * Get Custom Deserializer
118 public static org.apache.axis.encoding.Deserializer getDeserializer(
119 java.lang.String mechType,
120 java.lang.Class _javaType,
121 javax.xml.namespace.QName _xmlType) {
123 new org.apache.axis.encoding.ser.BeanDeserializer(
124 _javaType, _xmlType, typeDesc);