1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
package org.apache.maven.plugins.patchtracker.tracking.jira.soap; |
9 | |
|
10 | |
public class RemotePermissionMapping implements java.io.Serializable { |
11 | |
private org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemotePermission permission; |
12 | |
|
13 | |
private org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteEntity[] remoteEntities; |
14 | |
|
15 | 0 | public RemotePermissionMapping() { |
16 | 0 | } |
17 | |
|
18 | |
public RemotePermissionMapping( |
19 | |
org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemotePermission permission, |
20 | 0 | org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteEntity[] remoteEntities) { |
21 | 0 | this.permission = permission; |
22 | 0 | this.remoteEntities = remoteEntities; |
23 | 0 | } |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
public org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemotePermission getPermission() { |
32 | 0 | return permission; |
33 | |
} |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
public void setPermission(org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemotePermission permission) { |
42 | 0 | this.permission = permission; |
43 | 0 | } |
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
public org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteEntity[] getRemoteEntities() { |
52 | 0 | return remoteEntities; |
53 | |
} |
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
public void setRemoteEntities(org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteEntity[] remoteEntities) { |
62 | 0 | this.remoteEntities = remoteEntities; |
63 | 0 | } |
64 | |
|
65 | 0 | private java.lang.Object __equalsCalc = null; |
66 | |
public synchronized boolean equals(java.lang.Object obj) { |
67 | 0 | if (!(obj instanceof RemotePermissionMapping)) return false; |
68 | 0 | RemotePermissionMapping other = (RemotePermissionMapping) obj; |
69 | 0 | if (obj == null) return false; |
70 | 0 | if (this == obj) return true; |
71 | 0 | if (__equalsCalc != null) { |
72 | 0 | return (__equalsCalc == obj); |
73 | |
} |
74 | 0 | __equalsCalc = obj; |
75 | |
boolean _equals; |
76 | 0 | _equals = true && |
77 | |
((this.permission==null && other.getPermission()==null) || |
78 | |
(this.permission!=null && |
79 | |
this.permission.equals(other.getPermission()))) && |
80 | |
((this.remoteEntities==null && other.getRemoteEntities()==null) || |
81 | |
(this.remoteEntities!=null && |
82 | |
java.util.Arrays.equals(this.remoteEntities, other.getRemoteEntities()))); |
83 | 0 | __equalsCalc = null; |
84 | 0 | return _equals; |
85 | |
} |
86 | |
|
87 | 0 | private boolean __hashCodeCalc = false; |
88 | |
public synchronized int hashCode() { |
89 | 0 | if (__hashCodeCalc) { |
90 | 0 | return 0; |
91 | |
} |
92 | 0 | __hashCodeCalc = true; |
93 | 0 | int _hashCode = 1; |
94 | 0 | if (getPermission() != null) { |
95 | 0 | _hashCode += getPermission().hashCode(); |
96 | |
} |
97 | 0 | if (getRemoteEntities() != null) { |
98 | 0 | for (int i=0; |
99 | 0 | i<java.lang.reflect.Array.getLength(getRemoteEntities()); |
100 | 0 | i++) { |
101 | 0 | java.lang.Object obj = java.lang.reflect.Array.get(getRemoteEntities(), i); |
102 | 0 | if (obj != null && |
103 | |
!obj.getClass().isArray()) { |
104 | 0 | _hashCode += obj.hashCode(); |
105 | |
} |
106 | |
} |
107 | |
} |
108 | 0 | __hashCodeCalc = false; |
109 | 0 | return _hashCode; |
110 | |
} |
111 | |
|
112 | |
|
113 | 0 | private static org.apache.axis.description.TypeDesc typeDesc = |
114 | |
new org.apache.axis.description.TypeDesc(RemotePermissionMapping.class, true); |
115 | |
|
116 | |
static { |
117 | 0 | typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermissionMapping")); |
118 | 0 | org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
119 | 0 | elemField.setFieldName("permission"); |
120 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "permission")); |
121 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePermission")); |
122 | 0 | elemField.setNillable(true); |
123 | 0 | typeDesc.addFieldDesc(elemField); |
124 | 0 | elemField = new org.apache.axis.description.ElementDesc(); |
125 | 0 | elemField.setFieldName("remoteEntities"); |
126 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "remoteEntities")); |
127 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteEntity")); |
128 | 0 | elemField.setNillable(true); |
129 | 0 | typeDesc.addFieldDesc(elemField); |
130 | 0 | } |
131 | |
|
132 | |
|
133 | |
|
134 | |
|
135 | |
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
136 | 0 | return typeDesc; |
137 | |
} |
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
public static org.apache.axis.encoding.Serializer getSerializer( |
143 | |
java.lang.String mechType, |
144 | |
java.lang.Class _javaType, |
145 | |
javax.xml.namespace.QName _xmlType) { |
146 | 0 | return |
147 | |
new org.apache.axis.encoding.ser.BeanSerializer( |
148 | |
_javaType, _xmlType, typeDesc); |
149 | |
} |
150 | |
|
151 | |
|
152 | |
|
153 | |
|
154 | |
public static org.apache.axis.encoding.Deserializer getDeserializer( |
155 | |
java.lang.String mechType, |
156 | |
java.lang.Class _javaType, |
157 | |
javax.xml.namespace.QName _xmlType) { |
158 | 0 | return |
159 | |
new org.apache.axis.encoding.ser.BeanDeserializer( |
160 | |
_javaType, _xmlType, typeDesc); |
161 | |
} |
162 | |
|
163 | |
} |