View Javadoc

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