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   * AbstractNamedRemoteEntity.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 AbstractNamedRemoteEntity  extends com.atlassian.theplugin.jira.api.soap.axis.AbstractRemoteEntity  implements java.io.Serializable {
27      private java.lang.String name;
28  
29      public AbstractNamedRemoteEntity() {
30      }
31  
32      public AbstractNamedRemoteEntity(
33             java.lang.String id,
34             java.lang.String name) {
35          super(
36              id);
37          this.name = name;
38      }
39  
40  
41      /**
42       * Gets the name value for this AbstractNamedRemoteEntity.
43       * 
44       * @return name
45       */
46      public java.lang.String getName() {
47          return name;
48      }
49  
50  
51      /**
52       * Sets the name value for this AbstractNamedRemoteEntity.
53       * 
54       * @param name
55       */
56      public void setName(java.lang.String name) {
57          this.name = name;
58      }
59  
60      private java.lang.Object __equalsCalc = null;
61      public synchronized boolean equals(java.lang.Object obj) {
62          if (!(obj instanceof AbstractNamedRemoteEntity)) return false;
63          AbstractNamedRemoteEntity other = (AbstractNamedRemoteEntity) obj;
64          if (obj == null) return false;
65          if (this == obj) return true;
66          if (__equalsCalc != null) {
67              return (__equalsCalc == obj);
68          }
69          __equalsCalc = obj;
70          boolean _equals;
71          _equals = super.equals(obj) && 
72              ((this.name==null && other.getName()==null) || 
73               (this.name!=null &&
74                this.name.equals(other.getName())));
75          __equalsCalc = null;
76          return _equals;
77      }
78  
79      private boolean __hashCodeCalc = false;
80      public synchronized int hashCode() {
81          if (__hashCodeCalc) {
82              return 0;
83          }
84          __hashCodeCalc = true;
85          int _hashCode = super.hashCode();
86          if (getName() != null) {
87              _hashCode += getName().hashCode();
88          }
89          __hashCodeCalc = false;
90          return _hashCode;
91      }
92  
93      // Type metadata
94      private static org.apache.axis.description.TypeDesc typeDesc =
95          new org.apache.axis.description.TypeDesc(AbstractNamedRemoteEntity.class, true);
96  
97      static {
98          typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "AbstractNamedRemoteEntity"));
99          org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
100         elemField.setFieldName("name");
101         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
102         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
103         elemField.setNillable(true);
104         typeDesc.addFieldDesc(elemField);
105     }
106 
107     /**
108      * Return type metadata object
109      */
110     public static org.apache.axis.description.TypeDesc getTypeDesc() {
111         return typeDesc;
112     }
113 
114     /**
115      * Get Custom Serializer
116      */
117     public static org.apache.axis.encoding.Serializer getSerializer(
118            java.lang.String mechType, 
119            java.lang.Class _javaType,  
120            javax.xml.namespace.QName _xmlType) {
121         return 
122           new  org.apache.axis.encoding.ser.BeanSerializer(
123             _javaType, _xmlType, typeDesc);
124     }
125 
126     /**
127      * Get Custom Deserializer
128      */
129     public static org.apache.axis.encoding.Deserializer getDeserializer(
130            java.lang.String mechType, 
131            java.lang.Class _javaType,  
132            javax.xml.namespace.QName _xmlType) {
133         return 
134           new  org.apache.axis.encoding.ser.BeanDeserializer(
135             _javaType, _xmlType, typeDesc);
136     }
137 
138 }