/**
 * RubyInfo.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package rubysoapservices;

public class RubyInfo  implements java.io.Serializable {
    private rubysoapservices.Category ruby_Category;
    private rubysoapservices.Owner ruby_Owner;
    private rubysoapservices.Product ruby_Product;
    private java.lang.String update;

    public RubyInfo() {
    }

    public rubysoapservices.Category getRuby_Category() {
        return ruby_Category;
    }

    public void setRuby_Category(rubysoapservices.Category ruby_Category) {
        this.ruby_Category = ruby_Category;
    }

    public rubysoapservices.Owner getRuby_Owner() {
        return ruby_Owner;
    }

    public void setRuby_Owner(rubysoapservices.Owner ruby_Owner) {
        this.ruby_Owner = ruby_Owner;
    }

    public rubysoapservices.Product getRuby_Product() {
        return ruby_Product;
    }

    public void setRuby_Product(rubysoapservices.Product ruby_Product) {
        this.ruby_Product = ruby_Product;
    }

    public java.lang.String getUpdate() {
        return update;
    }

    public void setUpdate(java.lang.String update) {
        this.update = update;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof RubyInfo)) return false;
        RubyInfo other = (RubyInfo) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((ruby_Category==null && other.getRuby_Category()==null) || 
             (ruby_Category!=null &&
              ruby_Category.equals(other.getRuby_Category()))) &&
            ((ruby_Owner==null && other.getRuby_Owner()==null) || 
             (ruby_Owner!=null &&
              ruby_Owner.equals(other.getRuby_Owner()))) &&
            ((ruby_Product==null && other.getRuby_Product()==null) || 
             (ruby_Product!=null &&
              ruby_Product.equals(other.getRuby_Product()))) &&
            ((update==null && other.getUpdate()==null) || 
             (update!=null &&
              update.equals(other.getUpdate())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getRuby_Category() != null) {
            _hashCode += getRuby_Category().hashCode();
        }
        if (getRuby_Owner() != null) {
            _hashCode += getRuby_Owner().hashCode();
        }
        if (getRuby_Product() != null) {
            _hashCode += getRuby_Product().hashCode();
        }
        if (getUpdate() != null) {
            _hashCode += getUpdate().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("urn:rubysoapservices", "RubyInfo"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("ruby_Category");
        elemField.setXmlName(new javax.xml.namespace.QName("", "ruby_category"));
        elemField.setXmlType(new javax.xml.namespace.QName("urn:rubysoapservices", "Category"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("ruby_Owner");
        elemField.setXmlName(new javax.xml.namespace.QName("", "ruby_owner"));
        elemField.setXmlType(new javax.xml.namespace.QName("urn:rubysoapservices", "Owner"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("ruby_Product");
        elemField.setXmlName(new javax.xml.namespace.QName("", "ruby_product"));
        elemField.setXmlType(new javax.xml.namespace.QName("urn:rubysoapservices", "Product"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("update");
        elemField.setXmlName(new javax.xml.namespace.QName("", "update"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        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);
    }

}