View Javadoc

1   /**
2    * Copyright (C) 2008 Atlassian
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  /**
18   * RemoteFilter.java
19   *
20   * This file was auto-generated from WSDL
21   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
22   */
23  
24  package com.atlassian.theplugin.jira.api.soap.axis;
25  
26  public class RemoteFilter  extends com.atlassian.theplugin.jira.api.soap.axis.AbstractNamedRemoteEntity  implements java.io.Serializable {
27      private java.lang.String author;
28  
29      private java.lang.String description;
30  
31      private java.lang.String project;
32  
33      private java.lang.String xml;
34  
35      public RemoteFilter() {
36      }
37  
38      public RemoteFilter(
39             java.lang.String id,
40             java.lang.String name,
41             java.lang.String author,
42             java.lang.String description,
43             java.lang.String project,
44             java.lang.String xml) {
45          super(
46              id,
47              name);
48          this.author = author;
49          this.description = description;
50          this.project = project;
51          this.xml = xml;
52      }
53  
54  
55      /**
56       * Gets the author value for this RemoteFilter.
57       * 
58       * @return author
59       */
60      public java.lang.String getAuthor() {
61          return author;
62      }
63  
64  
65      /**
66       * Sets the author value for this RemoteFilter.
67       * 
68       * @param author
69       */
70      public void setAuthor(java.lang.String author) {
71          this.author = author;
72      }
73  
74  
75      /**
76       * Gets the description value for this RemoteFilter.
77       * 
78       * @return description
79       */
80      public java.lang.String getDescription() {
81          return description;
82      }
83  
84  
85      /**
86       * Sets the description value for this RemoteFilter.
87       * 
88       * @param description
89       */
90      public void setDescription(java.lang.String description) {
91          this.description = description;
92      }
93  
94  
95      /**
96       * Gets the project value for this RemoteFilter.
97       * 
98       * @return project
99       */
100     public java.lang.String getProject() {
101         return project;
102     }
103 
104 
105     /**
106      * Sets the project value for this RemoteFilter.
107      * 
108      * @param project
109      */
110     public void setProject(java.lang.String project) {
111         this.project = project;
112     }
113 
114 
115     /**
116      * Gets the xml value for this RemoteFilter.
117      * 
118      * @return xml
119      */
120     public java.lang.String getXml() {
121         return xml;
122     }
123 
124 
125     /**
126      * Sets the xml value for this RemoteFilter.
127      * 
128      * @param xml
129      */
130     public void setXml(java.lang.String xml) {
131         this.xml = xml;
132     }
133 
134     private java.lang.Object __equalsCalc = null;
135     public synchronized boolean equals(java.lang.Object obj) {
136         if (!(obj instanceof RemoteFilter)) return false;
137         RemoteFilter other = (RemoteFilter) obj;
138         if (obj == null) return false;
139         if (this == obj) return true;
140         if (__equalsCalc != null) {
141             return (__equalsCalc == obj);
142         }
143         __equalsCalc = obj;
144         boolean _equals;
145         _equals = super.equals(obj) && 
146             ((this.author==null && other.getAuthor()==null) || 
147              (this.author!=null &&
148               this.author.equals(other.getAuthor()))) &&
149             ((this.description==null && other.getDescription()==null) || 
150              (this.description!=null &&
151               this.description.equals(other.getDescription()))) &&
152             ((this.project==null && other.getProject()==null) || 
153              (this.project!=null &&
154               this.project.equals(other.getProject()))) &&
155             ((this.xml==null && other.getXml()==null) || 
156              (this.xml!=null &&
157               this.xml.equals(other.getXml())));
158         __equalsCalc = null;
159         return _equals;
160     }
161 
162     private boolean __hashCodeCalc = false;
163     public synchronized int hashCode() {
164         if (__hashCodeCalc) {
165             return 0;
166         }
167         __hashCodeCalc = true;
168         int _hashCode = super.hashCode();
169         if (getAuthor() != null) {
170             _hashCode += getAuthor().hashCode();
171         }
172         if (getDescription() != null) {
173             _hashCode += getDescription().hashCode();
174         }
175         if (getProject() != null) {
176             _hashCode += getProject().hashCode();
177         }
178         if (getXml() != null) {
179             _hashCode += getXml().hashCode();
180         }
181         __hashCodeCalc = false;
182         return _hashCode;
183     }
184 
185     // Type metadata
186     private static org.apache.axis.description.TypeDesc typeDesc =
187         new org.apache.axis.description.TypeDesc(RemoteFilter.class, true);
188 
189     static {
190         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteFilter"));
191         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
192         elemField.setFieldName("author");
193         elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
194         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
195         elemField.setNillable(true);
196         typeDesc.addFieldDesc(elemField);
197         elemField = new org.apache.axis.description.ElementDesc();
198         elemField.setFieldName("description");
199         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
200         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
201         elemField.setNillable(true);
202         typeDesc.addFieldDesc(elemField);
203         elemField = new org.apache.axis.description.ElementDesc();
204         elemField.setFieldName("project");
205         elemField.setXmlName(new javax.xml.namespace.QName("", "project"));
206         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
207         elemField.setNillable(true);
208         typeDesc.addFieldDesc(elemField);
209         elemField = new org.apache.axis.description.ElementDesc();
210         elemField.setFieldName("xml");
211         elemField.setXmlName(new javax.xml.namespace.QName("", "xml"));
212         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
213         elemField.setNillable(true);
214         typeDesc.addFieldDesc(elemField);
215     }
216 
217     /**
218      * Return type metadata object
219      */
220     public static org.apache.axis.description.TypeDesc getTypeDesc() {
221         return typeDesc;
222     }
223 
224     /**
225      * Get Custom Serializer
226      */
227     public static org.apache.axis.encoding.Serializer getSerializer(
228            java.lang.String mechType, 
229            java.lang.Class _javaType,  
230            javax.xml.namespace.QName _xmlType) {
231         return 
232           new  org.apache.axis.encoding.ser.BeanSerializer(
233             _javaType, _xmlType, typeDesc);
234     }
235 
236     /**
237      * Get Custom Deserializer
238      */
239     public static org.apache.axis.encoding.Deserializer getDeserializer(
240            java.lang.String mechType, 
241            java.lang.Class _javaType,  
242            javax.xml.namespace.QName _xmlType) {
243         return 
244           new  org.apache.axis.encoding.ser.BeanDeserializer(
245             _javaType, _xmlType, typeDesc);
246     }
247 
248 }