View Javadoc

1   /**
2    * Copyright (C) 2008 Atlassian
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  /**
18   * AbstractRemoteEntity.java
19   *
20   * This file was auto-generated from WSDL
21   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
22   */
23  
24  package com.atlassian.theplugin.jira.api.soap.axis;
25  
26  public abstract class AbstractRemoteEntity  implements java.io.Serializable {
27      private java.lang.String id;
28  
29      public AbstractRemoteEntity() {
30      }
31  
32      public AbstractRemoteEntity(
33             java.lang.String id) {
34             this.id = id;
35      }
36  
37  
38      /**
39       * Gets the id value for this AbstractRemoteEntity.
40       * 
41       * @return id
42       */
43      public java.lang.String getId() {
44          return id;
45      }
46  
47  
48      /**
49       * Sets the id value for this AbstractRemoteEntity.
50       * 
51       * @param id
52       */
53      public void setId(java.lang.String id) {
54          this.id = id;
55      }
56  
57      private java.lang.Object __equalsCalc = null;
58      public synchronized boolean equals(java.lang.Object obj) {
59          if (!(obj instanceof AbstractRemoteEntity)) return false;
60          AbstractRemoteEntity other = (AbstractRemoteEntity) obj;
61          if (obj == null) return false;
62          if (this == obj) return true;
63          if (__equalsCalc != null) {
64              return (__equalsCalc == obj);
65          }
66          __equalsCalc = obj;
67          boolean _equals;
68          _equals = true && 
69              ((this.id==null && other.getId()==null) || 
70               (this.id!=null &&
71                this.id.equals(other.getId())));
72          __equalsCalc = null;
73          return _equals;
74      }
75  
76      private boolean __hashCodeCalc = false;
77      public synchronized int hashCode() {
78          if (__hashCodeCalc) {
79              return 0;
80          }
81          __hashCodeCalc = true;
82          int _hashCode = 1;
83          if (getId() != null) {
84              _hashCode += getId().hashCode();
85          }
86          __hashCodeCalc = false;
87          return _hashCode;
88      }
89  
90      // Type metadata
91      private static org.apache.axis.description.TypeDesc typeDesc =
92          new org.apache.axis.description.TypeDesc(AbstractRemoteEntity.class, true);
93  
94      static {
95          typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "AbstractRemoteEntity"));
96          org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
97          elemField.setFieldName("id");
98          elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
99          elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
100         elemField.setNillable(true);
101         typeDesc.addFieldDesc(elemField);
102     }
103 
104     /**
105      * Return type metadata object
106      */
107     public static org.apache.axis.description.TypeDesc getTypeDesc() {
108         return typeDesc;
109     }
110 
111     /**
112      * Get Custom Serializer
113      */
114     public static org.apache.axis.encoding.Serializer getSerializer(
115            java.lang.String mechType, 
116            java.lang.Class _javaType,  
117            javax.xml.namespace.QName _xmlType) {
118         return 
119           new  org.apache.axis.encoding.ser.BeanSerializer(
120             _javaType, _xmlType, typeDesc);
121     }
122 
123     /**
124      * Get Custom Deserializer
125      */
126     public static org.apache.axis.encoding.Deserializer getDeserializer(
127            java.lang.String mechType, 
128            java.lang.Class _javaType,  
129            javax.xml.namespace.QName _xmlType) {
130         return 
131           new  org.apache.axis.encoding.ser.BeanDeserializer(
132             _javaType, _xmlType, typeDesc);
133     }
134 
135 }