--- /dev/null
+/**
+ * StudentGradeRecord.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.pentila.evalcomp.moodlews;
+
+public class StudentGradeRecord implements java.io.Serializable {
+ private java.lang.String error;
+
+ private java.lang.String courseid;
+
+ private com.pentila.evalcomp.moodlews.GradeStatsRecord stats;
+
+ private com.pentila.evalcomp.moodlews.GradeRecord[] grades;
+
+ public StudentGradeRecord() {
+ }
+
+ public StudentGradeRecord(
+ java.lang.String error,
+ java.lang.String courseid,
+ com.pentila.evalcomp.moodlews.GradeStatsRecord stats,
+ com.pentila.evalcomp.moodlews.GradeRecord[] grades) {
+ this.error = error;
+ this.courseid = courseid;
+ this.stats = stats;
+ this.grades = grades;
+ }
+
+
+ /**
+ * Gets the error value for this StudentGradeRecord.
+ *
+ * @return error
+ */
+ public java.lang.String getError() {
+ return error;
+ }
+
+
+ /**
+ * Sets the error value for this StudentGradeRecord.
+ *
+ * @param error
+ */
+ public void setError(java.lang.String error) {
+ this.error = error;
+ }
+
+
+ /**
+ * Gets the courseid value for this StudentGradeRecord.
+ *
+ * @return courseid
+ */
+ public java.lang.String getCourseid() {
+ return courseid;
+ }
+
+
+ /**
+ * Sets the courseid value for this StudentGradeRecord.
+ *
+ * @param courseid
+ */
+ public void setCourseid(java.lang.String courseid) {
+ this.courseid = courseid;
+ }
+
+
+ /**
+ * Gets the stats value for this StudentGradeRecord.
+ *
+ * @return stats
+ */
+ public com.pentila.evalcomp.moodlews.GradeStatsRecord getStats() {
+ return stats;
+ }
+
+
+ /**
+ * Sets the stats value for this StudentGradeRecord.
+ *
+ * @param stats
+ */
+ public void setStats(com.pentila.evalcomp.moodlews.GradeStatsRecord stats) {
+ this.stats = stats;
+ }
+
+
+ /**
+ * Gets the grades value for this StudentGradeRecord.
+ *
+ * @return grades
+ */
+ public com.pentila.evalcomp.moodlews.GradeRecord[] getGrades() {
+ return grades;
+ }
+
+
+ /**
+ * Sets the grades value for this StudentGradeRecord.
+ *
+ * @param grades
+ */
+ public void setGrades(com.pentila.evalcomp.moodlews.GradeRecord[] grades) {
+ this.grades = grades;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof StudentGradeRecord)) return false;
+ StudentGradeRecord other = (StudentGradeRecord) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ ((this.error==null && other.getError()==null) ||
+ (this.error!=null &&
+ this.error.equals(other.getError()))) &&
+ ((this.courseid==null && other.getCourseid()==null) ||
+ (this.courseid!=null &&
+ this.courseid.equals(other.getCourseid()))) &&
+ ((this.stats==null && other.getStats()==null) ||
+ (this.stats!=null &&
+ this.stats.equals(other.getStats()))) &&
+ ((this.grades==null && other.getGrades()==null) ||
+ (this.grades!=null &&
+ java.util.Arrays.equals(this.grades, other.getGrades())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getError() != null) {
+ _hashCode += getError().hashCode();
+ }
+ if (getCourseid() != null) {
+ _hashCode += getCourseid().hashCode();
+ }
+ if (getStats() != null) {
+ _hashCode += getStats().hashCode();
+ }
+ if (getGrades() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getGrades());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getGrades(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(StudentGradeRecord.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "studentGradeRecord"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("error");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "error"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("courseid");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "courseid"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("stats");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "stats"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "gradeStatsRecord"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("grades");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "grades"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "gradeRecord"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}