--- /dev/null
+/**
+ * RoleRecord.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 RoleRecord implements java.io.Serializable {
+ private java.lang.String error;
+
+ private java.math.BigInteger id;
+
+ private java.lang.String name;
+
+ private java.lang.String shortname;
+
+ private java.lang.String description;
+
+ private java.math.BigInteger sortorder;
+
+ public RoleRecord() {
+ }
+
+ public RoleRecord(
+ java.lang.String error,
+ java.math.BigInteger id,
+ java.lang.String name,
+ java.lang.String shortname,
+ java.lang.String description,
+ java.math.BigInteger sortorder) {
+ this.error = error;
+ this.id = id;
+ this.name = name;
+ this.shortname = shortname;
+ this.description = description;
+ this.sortorder = sortorder;
+ }
+
+
+ /**
+ * Gets the error value for this RoleRecord.
+ *
+ * @return error
+ */
+ public java.lang.String getError() {
+ return error;
+ }
+
+
+ /**
+ * Sets the error value for this RoleRecord.
+ *
+ * @param error
+ */
+ public void setError(java.lang.String error) {
+ this.error = error;
+ }
+
+
+ /**
+ * Gets the id value for this RoleRecord.
+ *
+ * @return id
+ */
+ public java.math.BigInteger getId() {
+ return id;
+ }
+
+
+ /**
+ * Sets the id value for this RoleRecord.
+ *
+ * @param id
+ */
+ public void setId(java.math.BigInteger id) {
+ this.id = id;
+ }
+
+
+ /**
+ * Gets the name value for this RoleRecord.
+ *
+ * @return name
+ */
+ public java.lang.String getName() {
+ return name;
+ }
+
+
+ /**
+ * Sets the name value for this RoleRecord.
+ *
+ * @param name
+ */
+ public void setName(java.lang.String name) {
+ this.name = name;
+ }
+
+
+ /**
+ * Gets the shortname value for this RoleRecord.
+ *
+ * @return shortname
+ */
+ public java.lang.String getShortname() {
+ return shortname;
+ }
+
+
+ /**
+ * Sets the shortname value for this RoleRecord.
+ *
+ * @param shortname
+ */
+ public void setShortname(java.lang.String shortname) {
+ this.shortname = shortname;
+ }
+
+
+ /**
+ * Gets the description value for this RoleRecord.
+ *
+ * @return description
+ */
+ public java.lang.String getDescription() {
+ return description;
+ }
+
+
+ /**
+ * Sets the description value for this RoleRecord.
+ *
+ * @param description
+ */
+ public void setDescription(java.lang.String description) {
+ this.description = description;
+ }
+
+
+ /**
+ * Gets the sortorder value for this RoleRecord.
+ *
+ * @return sortorder
+ */
+ public java.math.BigInteger getSortorder() {
+ return sortorder;
+ }
+
+
+ /**
+ * Sets the sortorder value for this RoleRecord.
+ *
+ * @param sortorder
+ */
+ public void setSortorder(java.math.BigInteger sortorder) {
+ this.sortorder = sortorder;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof RoleRecord)) return false;
+ RoleRecord other = (RoleRecord) 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.id==null && other.getId()==null) ||
+ (this.id!=null &&
+ this.id.equals(other.getId()))) &&
+ ((this.name==null && other.getName()==null) ||
+ (this.name!=null &&
+ this.name.equals(other.getName()))) &&
+ ((this.shortname==null && other.getShortname()==null) ||
+ (this.shortname!=null &&
+ this.shortname.equals(other.getShortname()))) &&
+ ((this.description==null && other.getDescription()==null) ||
+ (this.description!=null &&
+ this.description.equals(other.getDescription()))) &&
+ ((this.sortorder==null && other.getSortorder()==null) ||
+ (this.sortorder!=null &&
+ this.sortorder.equals(other.getSortorder())));
+ __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 (getId() != null) {
+ _hashCode += getId().hashCode();
+ }
+ if (getName() != null) {
+ _hashCode += getName().hashCode();
+ }
+ if (getShortname() != null) {
+ _hashCode += getShortname().hashCode();
+ }
+ if (getDescription() != null) {
+ _hashCode += getDescription().hashCode();
+ }
+ if (getSortorder() != null) {
+ _hashCode += getSortorder().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(RoleRecord.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("http://localhost:8890/moodle19/wspp/wsdl", "roleRecord"));
+ 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("id");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("name");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
+ 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("shortname");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "shortname"));
+ 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("description");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
+ 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("sortorder");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "sortorder"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer"));
+ 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);
+ }
+
+}