KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > webservice > administration > NewUserDetails


1 /**
2  * NewUserDetails.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.webservice.administration;
9
10 public class NewUserDetails implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc userName;
12
13     private java.lang.String JavaDoc password;
14
15     private org.alfresco.webservice.types.NamedValue[] properties;
16
17     public NewUserDetails() {
18     }
19
20     public NewUserDetails(
21            java.lang.String JavaDoc userName,
22            java.lang.String JavaDoc password,
23            org.alfresco.webservice.types.NamedValue[] properties) {
24            this.userName = userName;
25            this.password = password;
26            this.properties = properties;
27     }
28
29
30     /**
31      * Gets the userName value for this NewUserDetails.
32      *
33      * @return userName
34      */

35     public java.lang.String JavaDoc getUserName() {
36         return userName;
37     }
38
39
40     /**
41      * Sets the userName value for this NewUserDetails.
42      *
43      * @param userName
44      */

45     public void setUserName(java.lang.String JavaDoc userName) {
46         this.userName = userName;
47     }
48
49
50     /**
51      * Gets the password value for this NewUserDetails.
52      *
53      * @return password
54      */

55     public java.lang.String JavaDoc getPassword() {
56         return password;
57     }
58
59
60     /**
61      * Sets the password value for this NewUserDetails.
62      *
63      * @param password
64      */

65     public void setPassword(java.lang.String JavaDoc password) {
66         this.password = password;
67     }
68
69
70     /**
71      * Gets the properties value for this NewUserDetails.
72      *
73      * @return properties
74      */

75     public org.alfresco.webservice.types.NamedValue[] getProperties() {
76         return properties;
77     }
78
79
80     /**
81      * Sets the properties value for this NewUserDetails.
82      *
83      * @param properties
84      */

85     public void setProperties(org.alfresco.webservice.types.NamedValue[] properties) {
86         this.properties = properties;
87     }
88
89     public org.alfresco.webservice.types.NamedValue getProperties(int i) {
90         return this.properties[i];
91     }
92
93     public void setProperties(int i, org.alfresco.webservice.types.NamedValue _value) {
94         this.properties[i] = _value;
95     }
96
97     private java.lang.Object JavaDoc __equalsCalc = null;
98     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
99         if (!(obj instanceof NewUserDetails)) return false;
100         NewUserDetails other = (NewUserDetails) obj;
101         if (obj == null) return false;
102         if (this == obj) return true;
103         if (__equalsCalc != null) {
104             return (__equalsCalc == obj);
105         }
106         __equalsCalc = obj;
107         boolean _equals;
108         _equals = true &&
109             ((this.userName==null && other.getUserName()==null) ||
110              (this.userName!=null &&
111               this.userName.equals(other.getUserName()))) &&
112             ((this.password==null && other.getPassword()==null) ||
113              (this.password!=null &&
114               this.password.equals(other.getPassword()))) &&
115             ((this.properties==null && other.getProperties()==null) ||
116              (this.properties!=null &&
117               java.util.Arrays.equals(this.properties, other.getProperties())));
118         __equalsCalc = null;
119         return _equals;
120     }
121
122     private boolean __hashCodeCalc = false;
123     public synchronized int hashCode() {
124         if (__hashCodeCalc) {
125             return 0;
126         }
127         __hashCodeCalc = true;
128         int _hashCode = 1;
129         if (getUserName() != null) {
130             _hashCode += getUserName().hashCode();
131         }
132         if (getPassword() != null) {
133             _hashCode += getPassword().hashCode();
134         }
135         if (getProperties() != null) {
136             for (int i=0;
137                  i<java.lang.reflect.Array.getLength(getProperties());
138                  i++) {
139                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getProperties(), i);
140                 if (obj != null &&
141                     !obj.getClass().isArray()) {
142                     _hashCode += obj.hashCode();
143                 }
144             }
145         }
146         __hashCodeCalc = false;
147         return _hashCode;
148     }
149
150     // Type metadata
151
private static org.apache.axis.description.TypeDesc typeDesc =
152         new org.apache.axis.description.TypeDesc(NewUserDetails.class, true);
153
154     static {
155         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/administration/1.0", "NewUserDetails"));
156         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
157         elemField.setFieldName("userName");
158         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/administration/1.0", "userName"));
159         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
160         elemField.setNillable(false);
161         typeDesc.addFieldDesc(elemField);
162         elemField = new org.apache.axis.description.ElementDesc();
163         elemField.setFieldName("password");
164         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/administration/1.0", "password"));
165         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
166         elemField.setNillable(false);
167         typeDesc.addFieldDesc(elemField);
168         elemField = new org.apache.axis.description.ElementDesc();
169         elemField.setFieldName("properties");
170         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/administration/1.0", "properties"));
171         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
172         elemField.setMinOccurs(0);
173         elemField.setNillable(false);
174         elemField.setMaxOccursUnbounded(true);
175         typeDesc.addFieldDesc(elemField);
176     }
177
178     /**
179      * Return type metadata object
180      */

181     public static org.apache.axis.description.TypeDesc getTypeDesc() {
182         return typeDesc;
183     }
184
185     /**
186      * Get Custom Serializer
187      */

188     public static org.apache.axis.encoding.Serializer getSerializer(
189            java.lang.String JavaDoc mechType,
190            java.lang.Class JavaDoc _javaType,
191            javax.xml.namespace.QName JavaDoc _xmlType) {
192         return
193           new org.apache.axis.encoding.ser.BeanSerializer(
194             _javaType, _xmlType, typeDesc);
195     }
196
197     /**
198      * Get Custom Deserializer
199      */

200     public static org.apache.axis.encoding.Deserializer getDeserializer(
201            java.lang.String JavaDoc mechType,
202            java.lang.Class JavaDoc _javaType,
203            javax.xml.namespace.QName JavaDoc _xmlType) {
204         return
205           new org.apache.axis.encoding.ser.BeanDeserializer(
206             _javaType, _xmlType, typeDesc);
207     }
208
209 }
210
Popular Tags