View Javadoc

1   /**
2    * User.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 org.glite.security.voms;
9   
10  public class User  implements java.io.Serializable {
11      private java.lang.String CA;
12  
13      private java.lang.String CN;
14  
15      private java.lang.String DN;
16  
17      private java.lang.String certUri;
18  
19      private java.lang.String mail;
20  
21      public User() {
22      }
23  
24      public User(
25             java.lang.String CA,
26             java.lang.String CN,
27             java.lang.String DN,
28             java.lang.String certUri,
29             java.lang.String mail) {
30             this.CA = CA;
31             this.CN = CN;
32             this.DN = DN;
33             this.certUri = certUri;
34             this.mail = mail;
35      }
36  
37  
38      /**
39       * Gets the CA value for this User.
40       * 
41       * @return CA
42       */
43      public java.lang.String getCA() {
44          return CA;
45      }
46  
47  
48      /**
49       * Sets the CA value for this User.
50       * 
51       * @param CA
52       */
53      public void setCA(java.lang.String CA) {
54          this.CA = CA;
55      }
56  
57  
58      /**
59       * Gets the CN value for this User.
60       * 
61       * @return CN
62       */
63      public java.lang.String getCN() {
64          return CN;
65      }
66  
67  
68      /**
69       * Sets the CN value for this User.
70       * 
71       * @param CN
72       */
73      public void setCN(java.lang.String CN) {
74          this.CN = CN;
75      }
76  
77  
78      /**
79       * Gets the DN value for this User.
80       * 
81       * @return DN
82       */
83      public java.lang.String getDN() {
84          return DN;
85      }
86  
87  
88      /**
89       * Sets the DN value for this User.
90       * 
91       * @param DN
92       */
93      public void setDN(java.lang.String DN) {
94          this.DN = DN;
95      }
96  
97  
98      /**
99       * Gets the certUri value for this User.
100      * 
101      * @return certUri
102      */
103     public java.lang.String getCertUri() {
104         return certUri;
105     }
106 
107 
108     /**
109      * Sets the certUri value for this User.
110      * 
111      * @param certUri
112      */
113     public void setCertUri(java.lang.String certUri) {
114         this.certUri = certUri;
115     }
116 
117 
118     /**
119      * Gets the mail value for this User.
120      * 
121      * @return mail
122      */
123     public java.lang.String getMail() {
124         return mail;
125     }
126 
127 
128     /**
129      * Sets the mail value for this User.
130      * 
131      * @param mail
132      */
133     public void setMail(java.lang.String mail) {
134         this.mail = mail;
135     }
136 
137     private java.lang.Object __equalsCalc = null;
138     public synchronized boolean equals(java.lang.Object obj) {
139         if (!(obj instanceof User)) return false;
140         User other = (User) obj;
141         if (obj == null) return false;
142         if (this == obj) return true;
143         if (__equalsCalc != null) {
144             return (__equalsCalc == obj);
145         }
146         __equalsCalc = obj;
147         boolean _equals;
148         _equals = true && 
149             ((this.CA==null && other.getCA()==null) || 
150              (this.CA!=null &&
151               this.CA.equals(other.getCA()))) &&
152             ((this.CN==null && other.getCN()==null) || 
153              (this.CN!=null &&
154               this.CN.equals(other.getCN()))) &&
155             ((this.DN==null && other.getDN()==null) || 
156              (this.DN!=null &&
157               this.DN.equals(other.getDN()))) &&
158             ((this.certUri==null && other.getCertUri()==null) || 
159              (this.certUri!=null &&
160               this.certUri.equals(other.getCertUri()))) &&
161             ((this.mail==null && other.getMail()==null) || 
162              (this.mail!=null &&
163               this.mail.equals(other.getMail())));
164         __equalsCalc = null;
165         return _equals;
166     }
167 
168     private boolean __hashCodeCalc = false;
169     public synchronized int hashCode() {
170         if (__hashCodeCalc) {
171             return 0;
172         }
173         __hashCodeCalc = true;
174         int _hashCode = 1;
175         if (getCA() != null) {
176             _hashCode += getCA().hashCode();
177         }
178         if (getCN() != null) {
179             _hashCode += getCN().hashCode();
180         }
181         if (getDN() != null) {
182             _hashCode += getDN().hashCode();
183         }
184         if (getCertUri() != null) {
185             _hashCode += getCertUri().hashCode();
186         }
187         if (getMail() != null) {
188             _hashCode += getMail().hashCode();
189         }
190         __hashCodeCalc = false;
191         return _hashCode;
192     }
193 
194     // Type metadata
195     private static org.apache.axis.description.TypeDesc typeDesc =
196         new org.apache.axis.description.TypeDesc(User.class, true);
197 
198     static {
199         typeDesc.setXmlType(new javax.xml.namespace.QName("http://glite.org/wsdl/services/org.glite.security.voms", "User"));
200         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
201         elemField.setFieldName("CA");
202         elemField.setXmlName(new javax.xml.namespace.QName("", "CA"));
203         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
204         elemField.setNillable(true);
205         typeDesc.addFieldDesc(elemField);
206         elemField = new org.apache.axis.description.ElementDesc();
207         elemField.setFieldName("CN");
208         elemField.setXmlName(new javax.xml.namespace.QName("", "CN"));
209         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
210         elemField.setNillable(true);
211         typeDesc.addFieldDesc(elemField);
212         elemField = new org.apache.axis.description.ElementDesc();
213         elemField.setFieldName("DN");
214         elemField.setXmlName(new javax.xml.namespace.QName("", "DN"));
215         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
216         elemField.setNillable(true);
217         typeDesc.addFieldDesc(elemField);
218         elemField = new org.apache.axis.description.ElementDesc();
219         elemField.setFieldName("certUri");
220         elemField.setXmlName(new javax.xml.namespace.QName("", "certUri"));
221         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
222         elemField.setNillable(true);
223         typeDesc.addFieldDesc(elemField);
224         elemField = new org.apache.axis.description.ElementDesc();
225         elemField.setFieldName("mail");
226         elemField.setXmlName(new javax.xml.namespace.QName("", "mail"));
227         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
228         elemField.setNillable(true);
229         typeDesc.addFieldDesc(elemField);
230     }
231 
232     /**
233      * Return type metadata object
234      */
235     public static org.apache.axis.description.TypeDesc getTypeDesc() {
236         return typeDesc;
237     }
238 
239     /**
240      * Get Custom Serializer
241      */
242     public static org.apache.axis.encoding.Serializer getSerializer(
243            java.lang.String mechType, 
244            java.lang.Class _javaType,  
245            javax.xml.namespace.QName _xmlType) {
246         return 
247           new  org.apache.axis.encoding.ser.BeanSerializer(
248             _javaType, _xmlType, typeDesc);
249     }
250 
251     /**
252      * Get Custom Deserializer
253      */
254     public static org.apache.axis.encoding.Deserializer getDeserializer(
255            java.lang.String mechType, 
256            java.lang.Class _javaType,  
257            javax.xml.namespace.QName _xmlType) {
258         return 
259           new  org.apache.axis.encoding.ser.BeanDeserializer(
260             _javaType, _xmlType, typeDesc);
261     }
262 
263 }