View Javadoc

1   /**
2    * AbstractRemoteEntity.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package com.atlassian.theplugin.jira.api.soap.axis;
9   
10  public abstract class AbstractRemoteEntity implements java.io.Serializable {
11  	private java.lang.String id;
12  
13  	public AbstractRemoteEntity() {
14  	}
15  
16  	public AbstractRemoteEntity(
17  			java.lang.String id) {
18  		this.id = id;
19  	}
20  
21  
22  	/**
23  	 * Gets the id value for this AbstractRemoteEntity.
24  	 *
25  	 * @return id
26  	 */
27  	public java.lang.String getId() {
28  		return id;
29  	}
30  
31  
32  	/**
33  	 * Sets the id value for this AbstractRemoteEntity.
34  	 *
35  	 * @param id
36  	 */
37  	public void setId(java.lang.String id) {
38  		this.id = id;
39  	}
40  
41  	private java.lang.Object __equalsCalc = null;
42  
43  	public synchronized boolean equals(java.lang.Object obj) {
44  		if (!(obj instanceof AbstractRemoteEntity)) {
45  			return false;
46  		}
47  		AbstractRemoteEntity other = (AbstractRemoteEntity) obj;
48  		if (obj == null) {
49  			return false;
50  		}
51  		if (this == obj) {
52  			return true;
53  		}
54  		if (__equalsCalc != null) {
55  			return (__equalsCalc == obj);
56  		}
57  		__equalsCalc = obj;
58  		boolean _equals;
59  		_equals = true &&
60  				((this.id == null && other.getId() == null) ||
61  						(this.id != null &&
62  								this.id.equals(other.getId())));
63  		__equalsCalc = null;
64  		return _equals;
65  	}
66  
67  	private boolean __hashCodeCalc = false;
68  
69  	public synchronized int hashCode() {
70  		if (__hashCodeCalc) {
71  			return 0;
72  		}
73  		__hashCodeCalc = true;
74  		int _hashCode = 1;
75  		if (getId() != null) {
76  			_hashCode += getId().hashCode();
77  		}
78  		__hashCodeCalc = false;
79  		return _hashCode;
80  	}
81  
82  	// Type metadata
83  	private static org.apache.axis.description.TypeDesc typeDesc =
84  			new org.apache.axis.description.TypeDesc(AbstractRemoteEntity.class, true);
85  
86  	static {
87  		typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "AbstractRemoteEntity"));
88  		org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
89  		elemField.setFieldName("id");
90  		elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
91  		elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
92  		elemField.setNillable(true);
93  		typeDesc.addFieldDesc(elemField);
94  	}
95  
96  	/**
97  	 * Return type metadata object
98  	 */
99  	public static org.apache.axis.description.TypeDesc getTypeDesc() {
100 		return typeDesc;
101 	}
102 
103 	/**
104 	 * Get Custom Serializer
105 	 */
106 	public static org.apache.axis.encoding.Serializer getSerializer(
107 			java.lang.String mechType,
108 			java.lang.Class _javaType,
109 			javax.xml.namespace.QName _xmlType) {
110 		return
111 				new org.apache.axis.encoding.ser.BeanSerializer(
112 						_javaType, _xmlType, typeDesc);
113 	}
114 
115 	/**
116 	 * Get Custom Deserializer
117 	 */
118 	public static org.apache.axis.encoding.Deserializer getDeserializer(
119 			java.lang.String mechType,
120 			java.lang.Class _javaType,
121 			javax.xml.namespace.QName _xmlType) {
122 		return
123 				new org.apache.axis.encoding.ser.BeanDeserializer(
124 						_javaType, _xmlType, typeDesc);
125 	}
126 
127 }