View Javadoc

1   /**
2    * RemotePermissionScheme.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 RemotePermissionScheme extends com.atlassian.theplugin.jira.api.soap.axis.RemoteScheme
11  		implements java.io.Serializable {
12  	private com.atlassian.theplugin.jira.api.soap.axis.RemotePermissionMapping[] permissionMappings;
13  
14  	public RemotePermissionScheme() {
15  	}
16  
17  	public RemotePermissionScheme(
18  			java.lang.String description,
19  			java.lang.Long id,
20  			java.lang.String name,
21  			java.lang.String type,
22  			com.atlassian.theplugin.jira.api.soap.axis.RemotePermissionMapping[] permissionMappings) {
23  		super(
24  				description,
25  				id,
26  				name,
27  				type);
28  		this.permissionMappings = permissionMappings;
29  	}
30  
31  
32  	/**
33  	 * Gets the permissionMappings value for this RemotePermissionScheme.
34  	 *
35  	 * @return permissionMappings
36  	 */
37  	public com.atlassian.theplugin.jira.api.soap.axis.RemotePermissionMapping[] getPermissionMappings() {
38  		return permissionMappings;
39  	}
40  
41  
42  	/**
43  	 * Sets the permissionMappings value for this RemotePermissionScheme.
44  	 *
45  	 * @param permissionMappings
46  	 */
47  	public void setPermissionMappings(com.atlassian.theplugin.jira.api.soap.axis.RemotePermissionMapping[] permissionMappings) {
48  		this.permissionMappings = permissionMappings;
49  	}
50  
51  	private java.lang.Object __equalsCalc = null;
52  
53  	public synchronized boolean equals(java.lang.Object obj) {
54  		if (!(obj instanceof RemotePermissionScheme)) {
55  			return false;
56  		}
57  		RemotePermissionScheme other = (RemotePermissionScheme) 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.permissionMappings == null && other.getPermissionMappings() == null) ||
71  						(this.permissionMappings != null &&
72  								java.util.Arrays.equals(this.permissionMappings, other.getPermissionMappings())));
73  		__equalsCalc = null;
74  		return _equals;
75  	}
76  
77  	private boolean __hashCodeCalc = false;
78  
79  	public synchronized int hashCode() {
80  		if (__hashCodeCalc) {
81  			return 0;
82  		}
83  		__hashCodeCalc = true;
84  		int _hashCode = super.hashCode();
85  		if (getPermissionMappings() != null) {
86  			for (int i = 0;
87  				 i < java.lang.reflect.Array.getLength(getPermissionMappings());
88  				 i++) {
89  				java.lang.Object obj = java.lang.reflect.Array.get(getPermissionMappings(), i);
90  				if (obj != null &&
91  						!obj.getClass().isArray()) {
92  					_hashCode += obj.hashCode();
93  				}
94  			}
95  		}
96  		__hashCodeCalc = false;
97  		return _hashCode;
98  	}
99  
100 	// Type metadata
101 	private static org.apache.axis.description.TypeDesc typeDesc =
102 			new org.apache.axis.description.TypeDesc(RemotePermissionScheme.class, true);
103 
104 	static {
105 		typeDesc.setXmlType(
106 				new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermissionScheme"));
107 		org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
108 		elemField.setFieldName("permissionMappings");
109 		elemField.setXmlName(new javax.xml.namespace.QName("", "permissionMappings"));
110 		elemField.setXmlType(
111 				new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermissionMapping"));
112 		elemField.setNillable(true);
113 		typeDesc.addFieldDesc(elemField);
114 	}
115 
116 	/**
117 	 * Return type metadata object
118 	 */
119 	public static org.apache.axis.description.TypeDesc getTypeDesc() {
120 		return typeDesc;
121 	}
122 
123 	/**
124 	 * Get Custom Serializer
125 	 */
126 	public static org.apache.axis.encoding.Serializer getSerializer(
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.BeanSerializer(
132 						_javaType, _xmlType, typeDesc);
133 	}
134 
135 	/**
136 	 * Get Custom Deserializer
137 	 */
138 	public static org.apache.axis.encoding.Deserializer getDeserializer(
139 			java.lang.String mechType,
140 			java.lang.Class _javaType,
141 			javax.xml.namespace.QName _xmlType) {
142 		return
143 				new org.apache.axis.encoding.ser.BeanDeserializer(
144 						_javaType, _xmlType, typeDesc);
145 	}
146 
147 }