/**
 * RegisterPublisherResponse.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis #axisVersion# #today# WSDL2Java emitter.
 */

package org.oasis_open.docs.wsn._2004._06.wsn_WS_BrokeredNotification_1_2_draft_01_xsd;

public class RegisterPublisherResponse  implements java.io.Serializable {
    private org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType publisherRegistrationReference;

    public RegisterPublisherResponse() {
    }

    public RegisterPublisherResponse(
           org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType publisherRegistrationReference) {
           this.publisherRegistrationReference = publisherRegistrationReference;
    }


    /**
     * Gets the publisherRegistrationReference value for this RegisterPublisherResponse.
     * 
     * @return publisherRegistrationReference
     */
    public org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType getPublisherRegistrationReference() {
        return publisherRegistrationReference;
    }


    /**
     * Sets the publisherRegistrationReference value for this RegisterPublisherResponse.
     * 
     * @param publisherRegistrationReference
     */
    public void setPublisherRegistrationReference(org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType publisherRegistrationReference) {
        this.publisherRegistrationReference = publisherRegistrationReference;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof RegisterPublisherResponse)) return false;
        RegisterPublisherResponse other = (RegisterPublisherResponse) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.publisherRegistrationReference==null && other.getPublisherRegistrationReference()==null) || 
             (this.publisherRegistrationReference!=null &&
              this.publisherRegistrationReference.equals(other.getPublisherRegistrationReference())));
        __equalsCalc = null;
        return _equals;
    }

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

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BrokeredNotification-1.2-draft-01.xsd", ">RegisterPublisherResponse"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("publisherRegistrationReference");
        elemField.setXmlName(new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BrokeredNotification-1.2-draft-01.xsd", "PublisherRegistrationReference"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/addressing", "EndpointReferenceType"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        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);
    }

}
