View Javadoc

1   /**
2    * RemoteSecurityLevel.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 RemoteSecurityLevel extends com.atlassian.theplugin.jira.api.soap.axis.AbstractNamedRemoteEntity
11  		implements java.io.Serializable {
12  	private java.lang.String description;
13  
14  	public RemoteSecurityLevel() {
15  	}
16  
17  	public RemoteSecurityLevel(
18  			java.lang.String id,
19  			java.lang.String name,
20  			java.lang.String description) {
21  		super(
22  				id,
23  				name);
24  		this.description = description;
25  	}
26  
27  
28  	/**
29  	 * Gets the description value for this RemoteSecurityLevel.
30  	 *
31  	 * @return description
32  	 */
33  	public java.lang.String getDescription() {
34  		return description;
35  	}
36  
37  
38  	/**
39  	 * Sets the description value for this RemoteSecurityLevel.
40  	 *
41  	 * @param description
42  	 */
43  	public void setDescription(java.lang.String description) {
44  		this.description = description;
45  	}
46  
47  	private java.lang.Object __equalsCalc = null;
48  
49  	public synchronized boolean equals(java.lang.Object obj) {
50  		if (!(obj instanceof RemoteSecurityLevel)) {
51  			return false;
52  		}
53  		RemoteSecurityLevel other = (RemoteSecurityLevel) obj;
54  		if (obj == null) {
55  			return false;
56  		}
57  		if (this == obj) {
58  			return true;
59  		}
60  		if (__equalsCalc != null) {
61  			return (__equalsCalc == obj);
62  		}
63  		__equalsCalc = obj;
64  		boolean _equals;
65  		_equals = super.equals(obj) &&
66  				((this.description == null && other.getDescription() == null) ||
67  						(this.description != null &&
68  								this.description.equals(other.getDescription())));
69  		__equalsCalc = null;
70  		return _equals;
71  	}
72  
73  	private boolean __hashCodeCalc = false;
74  
75  	public synchronized int hashCode() {
76  		if (__hashCodeCalc) {
77  			return 0;
78  		}
79  		__hashCodeCalc = true;
80  		int _hashCode = super.hashCode();
81  		if (getDescription() != null) {
82  			_hashCode += getDescription().hashCode();
83  		}
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(RemoteSecurityLevel.class, true);
91  
92  	static {
93  		typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteSecurityLevel"));
94  		org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
95  		elemField.setFieldName("description");
96  		elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
97  		elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
98  		elemField.setNillable(true);
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 }