/**
 * SayingCore.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 SayingCore  implements java.io.Serializable {
    private java.lang.String sayingText;
    private java.lang.String literalTranslation;
    private java.lang.String languageOfSaying;
    private java.lang.String meaningInEnglish;

    public SayingCore() {
    }

    public SayingCore(
           java.lang.String sayingText,
           java.lang.String literalTranslation,
           java.lang.String languageOfSaying,
           java.lang.String meaningInEnglish) {
           this.sayingText = sayingText;
           this.literalTranslation = literalTranslation;
           this.languageOfSaying = languageOfSaying;
           this.meaningInEnglish = meaningInEnglish;
    }


    /**
     * Gets the sayingText value for this SayingCore.
     * 
     * @return sayingText
     */
    public java.lang.String getSayingText() {
        return sayingText;
    }


    /**
     * Sets the sayingText value for this SayingCore.
     * 
     * @param sayingText
     */
    public void setSayingText(java.lang.String sayingText) {
        this.sayingText = sayingText;
    }


    /**
     * Gets the literalTranslation value for this SayingCore.
     * 
     * @return literalTranslation
     */
    public java.lang.String getLiteralTranslation() {
        return literalTranslation;
    }


    /**
     * Sets the literalTranslation value for this SayingCore.
     * 
     * @param literalTranslation
     */
    public void setLiteralTranslation(java.lang.String literalTranslation) {
        this.literalTranslation = literalTranslation;
    }


    /**
     * Gets the languageOfSaying value for this SayingCore.
     * 
     * @return languageOfSaying
     */
    public java.lang.String getLanguageOfSaying() {
        return languageOfSaying;
    }


    /**
     * Sets the languageOfSaying value for this SayingCore.
     * 
     * @param languageOfSaying
     */
    public void setLanguageOfSaying(java.lang.String languageOfSaying) {
        this.languageOfSaying = languageOfSaying;
    }


    /**
     * Gets the meaningInEnglish value for this SayingCore.
     * 
     * @return meaningInEnglish
     */
    public java.lang.String getMeaningInEnglish() {
        return meaningInEnglish;
    }


    /**
     * Sets the meaningInEnglish value for this SayingCore.
     * 
     * @param meaningInEnglish
     */
    public void setMeaningInEnglish(java.lang.String meaningInEnglish) {
        this.meaningInEnglish = meaningInEnglish;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof SayingCore)) return false;
        SayingCore other = (SayingCore) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.sayingText==null && other.getSayingText()==null) || 
             (this.sayingText!=null &&
              this.sayingText.equals(other.getSayingText()))) &&
            ((this.literalTranslation==null && other.getLiteralTranslation()==null) || 
             (this.literalTranslation!=null &&
              this.literalTranslation.equals(other.getLiteralTranslation()))) &&
            ((this.languageOfSaying==null && other.getLanguageOfSaying()==null) || 
             (this.languageOfSaying!=null &&
              this.languageOfSaying.equals(other.getLanguageOfSaying()))) &&
            ((this.meaningInEnglish==null && other.getMeaningInEnglish()==null) || 
             (this.meaningInEnglish!=null &&
              this.meaningInEnglish.equals(other.getMeaningInEnglish())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getSayingText() != null) {
            _hashCode += getSayingText().hashCode();
        }
        if (getLiteralTranslation() != null) {
            _hashCode += getLiteralTranslation().hashCode();
        }
        if (getLanguageOfSaying() != null) {
            _hashCode += getLanguageOfSaying().hashCode();
        }
        if (getMeaningInEnglish() != null) {
            _hashCode += getMeaningInEnglish().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://sayings.jacomac.de", "SayingCore"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("sayingText");
        elemField.setXmlName(new javax.xml.namespace.QName("http://sayings.jacomac.de", "sayingText"));
        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("literalTranslation");
        elemField.setXmlName(new javax.xml.namespace.QName("http://sayings.jacomac.de", "literalTranslation"));
        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("languageOfSaying");
        elemField.setXmlName(new javax.xml.namespace.QName("http://sayings.jacomac.de", "languageOfSaying"));
        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("meaningInEnglish");
        elemField.setXmlName(new javax.xml.namespace.QName("http://sayings.jacomac.de", "meaningInEnglish"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        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);
    }

}
