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