/**
 * MetaData.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2RC1 Sep 29, 2004 (08:29:40 EDT) WSDL2Java emitter.
 */

package de.jacomac.sayings;

public class MetaData  implements java.io.Serializable {
    private java.lang.String version;
    private int numberOfEntries;
    private java.util.Calendar dateOfLatestEntry;

    public MetaData() {
    }

    public MetaData(
           java.lang.String version,
           int numberOfEntries,
           java.util.Calendar dateOfLatestEntry) {
           this.version = version;
           this.numberOfEntries = numberOfEntries;
           this.dateOfLatestEntry = dateOfLatestEntry;
    }


    /**
     * Gets the version value for this MetaData.
     * 
     * @return version
     */
    public java.lang.String getVersion() {
        return version;
    }


    /**
     * Sets the version value for this MetaData.
     * 
     * @param version
     */
    public void setVersion(java.lang.String version) {
        this.version = version;
    }


    /**
     * Gets the numberOfEntries value for this MetaData.
     * 
     * @return numberOfEntries
     */
    public int getNumberOfEntries() {
        return numberOfEntries;
    }


    /**
     * Sets the numberOfEntries value for this MetaData.
     * 
     * @param numberOfEntries
     */
    public void setNumberOfEntries(int numberOfEntries) {
        this.numberOfEntries = numberOfEntries;
    }


    /**
     * Gets the dateOfLatestEntry value for this MetaData.
     * 
     * @return dateOfLatestEntry
     */
    public java.util.Calendar getDateOfLatestEntry() {
        return dateOfLatestEntry;
    }


    /**
     * Sets the dateOfLatestEntry value for this MetaData.
     * 
     * @param dateOfLatestEntry
     */
    public void setDateOfLatestEntry(java.util.Calendar dateOfLatestEntry) {
        this.dateOfLatestEntry = dateOfLatestEntry;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof MetaData)) return false;
        MetaData other = (MetaData) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.version==null && other.getVersion()==null) || 
             (this.version!=null &&
              this.version.equals(other.getVersion()))) &&
            this.numberOfEntries == other.getNumberOfEntries() &&
            ((this.dateOfLatestEntry==null && other.getDateOfLatestEntry()==null) || 
             (this.dateOfLatestEntry!=null &&
              this.dateOfLatestEntry.equals(other.getDateOfLatestEntry())));
        __equalsCalc = null;
        return _equals;
    }

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

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://sayings.jacomac.de", "MetaData"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("version");
        elemField.setXmlName(new javax.xml.namespace.QName("http://sayings.jacomac.de", "version"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("numberOfEntries");
        elemField.setXmlName(new javax.xml.namespace.QName("http://sayings.jacomac.de", "numberOfEntries"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dateOfLatestEntry");
        elemField.setXmlName(new javax.xml.namespace.QName("http://sayings.jacomac.de", "dateOfLatestEntry"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
        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);
    }

}
