2 * GradeStatsRecord.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 GradeStatsRecord implements java.io.Serializable {
11 private java.math.BigInteger gradeItems;
13 private java.lang.String allgrades;
15 private java.math.BigInteger points;
17 private java.math.BigInteger totalpoints;
19 private float percent;
23 private float weighted;
25 public GradeStatsRecord() {
28 public GradeStatsRecord(
29 java.math.BigInteger gradeItems,
30 java.lang.String allgrades,
31 java.math.BigInteger points,
32 java.math.BigInteger totalpoints,
36 this.gradeItems = gradeItems;
37 this.allgrades = allgrades;
39 this.totalpoints = totalpoints;
40 this.percent = percent;
42 this.weighted = weighted;
47 * Gets the gradeItems value for this GradeStatsRecord.
51 public java.math.BigInteger getGradeItems() {
57 * Sets the gradeItems value for this GradeStatsRecord.
61 public void setGradeItems(java.math.BigInteger gradeItems) {
62 this.gradeItems = gradeItems;
67 * Gets the allgrades value for this GradeStatsRecord.
71 public java.lang.String getAllgrades() {
77 * Sets the allgrades value for this GradeStatsRecord.
81 public void setAllgrades(java.lang.String allgrades) {
82 this.allgrades = allgrades;
87 * Gets the points value for this GradeStatsRecord.
91 public java.math.BigInteger getPoints() {
97 * Sets the points value for this GradeStatsRecord.
101 public void setPoints(java.math.BigInteger points) {
102 this.points = points;
107 * Gets the totalpoints value for this GradeStatsRecord.
109 * @return totalpoints
111 public java.math.BigInteger getTotalpoints() {
117 * Sets the totalpoints value for this GradeStatsRecord.
121 public void setTotalpoints(java.math.BigInteger totalpoints) {
122 this.totalpoints = totalpoints;
127 * Gets the percent value for this GradeStatsRecord.
131 public float getPercent() {
137 * Sets the percent value for this GradeStatsRecord.
141 public void setPercent(float percent) {
142 this.percent = percent;
147 * Gets the weight value for this GradeStatsRecord.
151 public float getWeight() {
157 * Sets the weight value for this GradeStatsRecord.
161 public void setWeight(float weight) {
162 this.weight = weight;
167 * Gets the weighted value for this GradeStatsRecord.
171 public float getWeighted() {
177 * Sets the weighted value for this GradeStatsRecord.
181 public void setWeighted(float weighted) {
182 this.weighted = weighted;
185 private java.lang.Object __equalsCalc = null;
186 public synchronized boolean equals(java.lang.Object obj) {
187 if (!(obj instanceof GradeStatsRecord)) return false;
188 GradeStatsRecord other = (GradeStatsRecord) obj;
189 if (obj == null) return false;
190 if (this == obj) return true;
191 if (__equalsCalc != null) {
192 return (__equalsCalc == obj);
197 ((this.gradeItems==null && other.getGradeItems()==null) ||
198 (this.gradeItems!=null &&
199 this.gradeItems.equals(other.getGradeItems()))) &&
200 ((this.allgrades==null && other.getAllgrades()==null) ||
201 (this.allgrades!=null &&
202 this.allgrades.equals(other.getAllgrades()))) &&
203 ((this.points==null && other.getPoints()==null) ||
204 (this.points!=null &&
205 this.points.equals(other.getPoints()))) &&
206 ((this.totalpoints==null && other.getTotalpoints()==null) ||
207 (this.totalpoints!=null &&
208 this.totalpoints.equals(other.getTotalpoints()))) &&
209 this.percent == other.getPercent() &&
210 this.weight == other.getWeight() &&
211 this.weighted == other.getWeighted();
216 private boolean __hashCodeCalc = false;
217 public synchronized int hashCode() {
218 if (__hashCodeCalc) {
221 __hashCodeCalc = true;
223 if (getGradeItems() != null) {
224 _hashCode += getGradeItems().hashCode();
226 if (getAllgrades() != null) {
227 _hashCode += getAllgrades().hashCode();
229 if (getPoints() != null) {
230 _hashCode += getPoints().hashCode();
232 if (getTotalpoints() != null) {
233 _hashCode += getTotalpoints().hashCode();
235 _hashCode += new Float(getPercent()).hashCode();
236 _hashCode += new Float(getWeight()).hashCode();
237 _hashCode += new Float(getWeighted()).hashCode();
238 __hashCodeCalc = false;
243 private static org.apache.axis.description.TypeDesc typeDesc =
244 new org.apache.axis.description.TypeDesc(GradeStatsRecord.class, true);
247 typeDesc.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "gradeStatsRecord"));
248 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
249 elemField.setFieldName("gradeItems");
250 elemField.setXmlName(new javax.xml.namespace.QName("", "gradeItems"));
251 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer"));
252 elemField.setNillable(false);
253 typeDesc.addFieldDesc(elemField);
254 elemField = new org.apache.axis.description.ElementDesc();
255 elemField.setFieldName("allgrades");
256 elemField.setXmlName(new javax.xml.namespace.QName("", "allgrades"));
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("points");
262 elemField.setXmlName(new javax.xml.namespace.QName("", "points"));
263 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer"));
264 elemField.setNillable(false);
265 typeDesc.addFieldDesc(elemField);
266 elemField = new org.apache.axis.description.ElementDesc();
267 elemField.setFieldName("totalpoints");
268 elemField.setXmlName(new javax.xml.namespace.QName("", "totalpoints"));
269 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer"));
270 elemField.setNillable(false);
271 typeDesc.addFieldDesc(elemField);
272 elemField = new org.apache.axis.description.ElementDesc();
273 elemField.setFieldName("percent");
274 elemField.setXmlName(new javax.xml.namespace.QName("", "percent"));
275 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float"));
276 elemField.setNillable(false);
277 typeDesc.addFieldDesc(elemField);
278 elemField = new org.apache.axis.description.ElementDesc();
279 elemField.setFieldName("weight");
280 elemField.setXmlName(new javax.xml.namespace.QName("", "weight"));
281 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float"));
282 elemField.setNillable(false);
283 typeDesc.addFieldDesc(elemField);
284 elemField = new org.apache.axis.description.ElementDesc();
285 elemField.setFieldName("weighted");
286 elemField.setXmlName(new javax.xml.namespace.QName("", "weighted"));
287 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float"));
288 elemField.setNillable(false);
289 typeDesc.addFieldDesc(elemField);
293 * Return type metadata object
295 public static org.apache.axis.description.TypeDesc getTypeDesc() {
300 * Get Custom Serializer
302 public static org.apache.axis.encoding.Serializer getSerializer(
303 java.lang.String mechType,
304 java.lang.Class _javaType,
305 javax.xml.namespace.QName _xmlType) {
307 new org.apache.axis.encoding.ser.BeanSerializer(
308 _javaType, _xmlType, typeDesc);
312 * Get Custom Deserializer
314 public static org.apache.axis.encoding.Deserializer getDeserializer(
315 java.lang.String mechType,
316 java.lang.Class _javaType,
317 javax.xml.namespace.QName _xmlType) {
319 new org.apache.axis.encoding.ser.BeanDeserializer(
320 _javaType, _xmlType, typeDesc);