2 * StudentGradeRecord.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 StudentGradeRecord implements java.io.Serializable {
11 private java.lang.String error;
13 private java.lang.String courseid;
15 private com.pentila.evalcomp.moodlews.GradeStatsRecord stats;
17 private com.pentila.evalcomp.moodlews.GradeRecord[] grades;
19 public StudentGradeRecord() {
22 public StudentGradeRecord(
23 java.lang.String error,
24 java.lang.String courseid,
25 com.pentila.evalcomp.moodlews.GradeStatsRecord stats,
26 com.pentila.evalcomp.moodlews.GradeRecord[] grades) {
28 this.courseid = courseid;
35 * Gets the error value for this StudentGradeRecord.
39 public java.lang.String getError() {
45 * Sets the error value for this StudentGradeRecord.
49 public void setError(java.lang.String error) {
55 * Gets the courseid value for this StudentGradeRecord.
59 public java.lang.String getCourseid() {
65 * Sets the courseid value for this StudentGradeRecord.
69 public void setCourseid(java.lang.String courseid) {
70 this.courseid = courseid;
75 * Gets the stats value for this StudentGradeRecord.
79 public com.pentila.evalcomp.moodlews.GradeStatsRecord getStats() {
85 * Sets the stats value for this StudentGradeRecord.
89 public void setStats(com.pentila.evalcomp.moodlews.GradeStatsRecord stats) {
95 * Gets the grades value for this StudentGradeRecord.
99 public com.pentila.evalcomp.moodlews.GradeRecord[] getGrades() {
105 * Sets the grades value for this StudentGradeRecord.
109 public void setGrades(com.pentila.evalcomp.moodlews.GradeRecord[] grades) {
110 this.grades = grades;
113 private java.lang.Object __equalsCalc = null;
114 public synchronized boolean equals(java.lang.Object obj) {
115 if (!(obj instanceof StudentGradeRecord)) return false;
116 StudentGradeRecord other = (StudentGradeRecord) obj;
117 if (obj == null) return false;
118 if (this == obj) return true;
119 if (__equalsCalc != null) {
120 return (__equalsCalc == obj);
125 ((this.error==null && other.getError()==null) ||
127 this.error.equals(other.getError()))) &&
128 ((this.courseid==null && other.getCourseid()==null) ||
129 (this.courseid!=null &&
130 this.courseid.equals(other.getCourseid()))) &&
131 ((this.stats==null && other.getStats()==null) ||
133 this.stats.equals(other.getStats()))) &&
134 ((this.grades==null && other.getGrades()==null) ||
135 (this.grades!=null &&
136 java.util.Arrays.equals(this.grades, other.getGrades())));
141 private boolean __hashCodeCalc = false;
142 public synchronized int hashCode() {
143 if (__hashCodeCalc) {
146 __hashCodeCalc = true;
148 if (getError() != null) {
149 _hashCode += getError().hashCode();
151 if (getCourseid() != null) {
152 _hashCode += getCourseid().hashCode();
154 if (getStats() != null) {
155 _hashCode += getStats().hashCode();
157 if (getGrades() != null) {
159 i<java.lang.reflect.Array.getLength(getGrades());
161 java.lang.Object obj = java.lang.reflect.Array.get(getGrades(), i);
163 !obj.getClass().isArray()) {
164 _hashCode += obj.hashCode();
168 __hashCodeCalc = false;
173 private static org.apache.axis.description.TypeDesc typeDesc =
174 new org.apache.axis.description.TypeDesc(StudentGradeRecord.class, true);
177 typeDesc.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "studentGradeRecord"));
178 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
179 elemField.setFieldName("error");
180 elemField.setXmlName(new javax.xml.namespace.QName("", "error"));
181 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
182 elemField.setNillable(false);
183 typeDesc.addFieldDesc(elemField);
184 elemField = new org.apache.axis.description.ElementDesc();
185 elemField.setFieldName("courseid");
186 elemField.setXmlName(new javax.xml.namespace.QName("", "courseid"));
187 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
188 elemField.setNillable(false);
189 typeDesc.addFieldDesc(elemField);
190 elemField = new org.apache.axis.description.ElementDesc();
191 elemField.setFieldName("stats");
192 elemField.setXmlName(new javax.xml.namespace.QName("", "stats"));
193 elemField.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "gradeStatsRecord"));
194 elemField.setNillable(false);
195 typeDesc.addFieldDesc(elemField);
196 elemField = new org.apache.axis.description.ElementDesc();
197 elemField.setFieldName("grades");
198 elemField.setXmlName(new javax.xml.namespace.QName("", "grades"));
199 elemField.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "gradeRecord"));
200 elemField.setNillable(false);
201 typeDesc.addFieldDesc(elemField);
205 * Return type metadata object
207 public static org.apache.axis.description.TypeDesc getTypeDesc() {
212 * Get Custom Serializer
214 public static org.apache.axis.encoding.Serializer getSerializer(
215 java.lang.String mechType,
216 java.lang.Class _javaType,
217 javax.xml.namespace.QName _xmlType) {
219 new org.apache.axis.encoding.ser.BeanSerializer(
220 _javaType, _xmlType, typeDesc);
224 * Get Custom Deserializer
226 public static org.apache.axis.encoding.Deserializer getDeserializer(
227 java.lang.String mechType,
228 java.lang.Class _javaType,
229 javax.xml.namespace.QName _xmlType) {
231 new org.apache.axis.encoding.ser.BeanDeserializer(
232 _javaType, _xmlType, typeDesc);