www.pudn.com > google_examples.zip > DirectoryCategory.java, change:2002-05-01,size:2972b


/** 
 * DirectoryCategory.java 
 * 
 * This file was auto-generated from WSDL 
 * by the Apache Axis Wsdl2java emitter. 
 */ 
 
package GoogleSearch; 
 
public class DirectoryCategory implements java.io.Serializable { 
    private java.lang.String fullViewableName; 
    private java.lang.String specialEncoding; 
 
    public DirectoryCategory() { 
    } 
 
    public java.lang.String getFullViewableName() { 
        return fullViewableName; 
    } 
 
    public void setFullViewableName(java.lang.String fullViewableName) { 
        this.fullViewableName = fullViewableName; 
    } 
 
    public java.lang.String getSpecialEncoding() { 
        return specialEncoding; 
    } 
 
    public void setSpecialEncoding(java.lang.String specialEncoding) { 
        this.specialEncoding = specialEncoding; 
    } 
 
    private Object __equalsCalc = null; 
    public synchronized boolean equals(Object obj) { 
        if (!(obj instanceof DirectoryCategory)) return false; 
        DirectoryCategory other = (DirectoryCategory) obj; 
        if (obj == null) return false; 
        if (this == obj) return true; 
        if (__equalsCalc != null) { 
            return (__equalsCalc == obj); 
        } 
        __equalsCalc = obj; 
        boolean _equals; 
        _equals = true &&  
            ((fullViewableName==null && other.getFullViewableName()==null) ||  
             (fullViewableName!=null && 
              fullViewableName.equals(other.getFullViewableName()))) && 
            ((specialEncoding==null && other.getSpecialEncoding()==null) ||  
             (specialEncoding!=null && 
              specialEncoding.equals(other.getSpecialEncoding()))); 
        __equalsCalc = null; 
        return _equals; 
    } 
    private boolean __hashCodeCalc = false; 
    public synchronized int hashCode() { 
        if (__hashCodeCalc) { 
            return 0; 
        } 
        __hashCodeCalc = true; 
        int _hashCode = 1; 
        if (getFullViewableName() != null) { 
            _hashCode += getFullViewableName().hashCode(); 
        } 
        if (getSpecialEncoding() != null) { 
            _hashCode += getSpecialEncoding().hashCode(); 
        } 
        __hashCodeCalc = false; 
        return _hashCode; 
    } 
    /** 
     * Get Custom Serializer 
     */ 
    public static org.apache.axis.encoding.Serializer getSerializer( 
           String mechType,  
           Class _javaType,   
           javax.xml.rpc.namespace.QName _xmlType) { 
        return  
          new  org.apache.axis.encoding.ser.BeanSerializer( 
            _javaType, _xmlType,null); 
    }; 
 
    /** 
     * Get Custom Deserializer 
     */ 
    public static org.apache.axis.encoding.Deserializer getDeserializer( 
           String mechType,  
           Class _javaType,   
           javax.xml.rpc.namespace.QName _xmlType) { 
        return  
          new  org.apache.axis.encoding.ser.BeanDeserializer( 
            _javaType, _xmlType,null); 
    }; 
 
}