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