/**
 * ResultsetTypeResultsetMetadataRecordStructureReturnField.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
 */

package org.ecoinformatics.ecogrid.queryservice.resultset;

public class ResultsetTypeResultsetMetadataRecordStructureReturnField  implements java.io.Serializable {
    private java.lang.String id;  // attribute

    private java.lang.String pathns;  // attribute

    private java.lang.String name;  // attribute

    public ResultsetTypeResultsetMetadataRecordStructureReturnField() {
    }

    public ResultsetTypeResultsetMetadataRecordStructureReturnField(
           java.lang.String id,
           java.lang.String pathns,
           java.lang.String name) {
           this.id = id;
           this.pathns = pathns;
           this.name = name;
    }


    /**
     * Gets the id value for this ResultsetTypeResultsetMetadataRecordStructureReturnField.
     * 
     * @return id
     */
    public java.lang.String getId() {
        return id;
    }


    /**
     * Sets the id value for this ResultsetTypeResultsetMetadataRecordStructureReturnField.
     * 
     * @param id
     */
    public void setId(java.lang.String id) {
        this.id = id;
    }


    /**
     * Gets the pathns value for this ResultsetTypeResultsetMetadataRecordStructureReturnField.
     * 
     * @return pathns
     */
    public java.lang.String getPathns() {
        return pathns;
    }


    /**
     * Sets the pathns value for this ResultsetTypeResultsetMetadataRecordStructureReturnField.
     * 
     * @param pathns
     */
    public void setPathns(java.lang.String pathns) {
        this.pathns = pathns;
    }


    /**
     * Gets the name value for this ResultsetTypeResultsetMetadataRecordStructureReturnField.
     * 
     * @return name
     */
    public java.lang.String getName() {
        return name;
    }


    /**
     * Sets the name value for this ResultsetTypeResultsetMetadataRecordStructureReturnField.
     * 
     * @param name
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof ResultsetTypeResultsetMetadataRecordStructureReturnField)) return false;
        ResultsetTypeResultsetMetadataRecordStructureReturnField other = (ResultsetTypeResultsetMetadataRecordStructureReturnField) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.id==null && other.getId()==null) || 
             (this.id!=null &&
              this.id.equals(other.getId()))) &&
            ((this.pathns==null && other.getPathns()==null) || 
             (this.pathns!=null &&
              this.pathns.equals(other.getPathns()))) &&
            ((this.name==null && other.getName()==null) || 
             (this.name!=null &&
              this.name.equals(other.getName())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getId() != null) {
            _hashCode += getId().hashCode();
        }
        if (getPathns() != null) {
            _hashCode += getPathns().hashCode();
        }
        if (getName() != null) {
            _hashCode += getName().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(ResultsetTypeResultsetMetadataRecordStructureReturnField.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ecoinformatics.org/resultset-1.0.1", ">>>ResultsetType>resultsetMetadata>recordStructure>returnField"));
        org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
        attrField.setFieldName("id");
        attrField.setXmlName(new javax.xml.namespace.QName("", "id"));
        attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(attrField);
        attrField = new org.apache.axis.description.AttributeDesc();
        attrField.setFieldName("pathns");
        attrField.setXmlName(new javax.xml.namespace.QName("", "pathns"));
        attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(attrField);
        attrField = new org.apache.axis.description.AttributeDesc();
        attrField.setFieldName("name");
        attrField.setXmlName(new javax.xml.namespace.QName("", "name"));
        attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(attrField);
    }

    /**
     * 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);
    }

}
