KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > types > Reference


1 /**
2  * Reference.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.types;
9
10 public class Reference implements java.io.Serializable JavaDoc {
11     private org.alfresco.example.webservice.types.Store store;
12     private java.lang.String JavaDoc uuid;
13     private java.lang.String JavaDoc path;
14
15     public Reference() {
16     }
17
18     public Reference(
19            org.alfresco.example.webservice.types.Store store,
20            java.lang.String JavaDoc uuid,
21            java.lang.String JavaDoc path) {
22            this.store = store;
23            this.uuid = uuid;
24            this.path = path;
25     }
26
27
28     /**
29      * Gets the store value for this Reference.
30      *
31      * @return store
32      */

33     public org.alfresco.example.webservice.types.Store getStore() {
34         return store;
35     }
36
37
38     /**
39      * Sets the store value for this Reference.
40      *
41      * @param store
42      */

43     public void setStore(org.alfresco.example.webservice.types.Store store) {
44         this.store = store;
45     }
46
47
48     /**
49      * Gets the uuid value for this Reference.
50      *
51      * @return uuid
52      */

53     public java.lang.String JavaDoc getUuid() {
54         return uuid;
55     }
56
57
58     /**
59      * Sets the uuid value for this Reference.
60      *
61      * @param uuid
62      */

63     public void setUuid(java.lang.String JavaDoc uuid) {
64         this.uuid = uuid;
65     }
66
67
68     /**
69      * Gets the path value for this Reference.
70      *
71      * @return path
72      */

73     public java.lang.String JavaDoc getPath() {
74         return path;
75     }
76
77
78     /**
79      * Sets the path value for this Reference.
80      *
81      * @param path
82      */

83     public void setPath(java.lang.String JavaDoc path) {
84         this.path = path;
85     }
86
87     private java.lang.Object JavaDoc __equalsCalc = null;
88     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
89         if (!(obj instanceof Reference)) return false;
90         Reference other = (Reference) obj;
91         if (obj == null) return false;
92         if (this == obj) return true;
93         if (__equalsCalc != null) {
94             return (__equalsCalc == obj);
95         }
96         __equalsCalc = obj;
97         boolean _equals;
98         _equals = true &&
99             ((this.store==null && other.getStore()==null) ||
100              (this.store!=null &&
101               this.store.equals(other.getStore()))) &&
102             ((this.uuid==null && other.getUuid()==null) ||
103              (this.uuid!=null &&
104               this.uuid.equals(other.getUuid()))) &&
105             ((this.path==null && other.getPath()==null) ||
106              (this.path!=null &&
107               this.path.equals(other.getPath())));
108         __equalsCalc = null;
109         return _equals;
110     }
111
112     private boolean __hashCodeCalc = false;
113     public synchronized int hashCode() {
114         if (__hashCodeCalc) {
115             return 0;
116         }
117         __hashCodeCalc = true;
118         int _hashCode = 1;
119         if (getStore() != null) {
120             _hashCode += getStore().hashCode();
121         }
122         if (getUuid() != null) {
123             _hashCode += getUuid().hashCode();
124         }
125         if (getPath() != null) {
126             _hashCode += getPath().hashCode();
127         }
128         __hashCodeCalc = false;
129         return _hashCode;
130     }
131
132     // Type metadata
133
private static org.apache.axis.description.TypeDesc typeDesc =
134         new org.apache.axis.description.TypeDesc(Reference.class, true);
135
136     static {
137         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
138         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
139         elemField.setFieldName("store");
140         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "store"));
141         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Store"));
142         elemField.setNillable(false);
143         typeDesc.addFieldDesc(elemField);
144         elemField = new org.apache.axis.description.ElementDesc();
145         elemField.setFieldName("uuid");
146         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "uuid"));
147         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "UUID"));
148         elemField.setMinOccurs(0);
149         elemField.setNillable(false);
150         typeDesc.addFieldDesc(elemField);
151         elemField = new org.apache.axis.description.ElementDesc();
152         elemField.setFieldName("path");
153         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "path"));
154         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Path"));
155         elemField.setMinOccurs(0);
156         elemField.setNillable(false);
157         typeDesc.addFieldDesc(elemField);
158     }
159
160     /**
161      * Return type metadata object
162      */

163     public static org.apache.axis.description.TypeDesc getTypeDesc() {
164         return typeDesc;
165     }
166
167     /**
168      * Get Custom Serializer
169      */

170     public static org.apache.axis.encoding.Serializer getSerializer(
171            java.lang.String JavaDoc mechType,
172            java.lang.Class JavaDoc _javaType,
173            javax.xml.namespace.QName JavaDoc _xmlType) {
174         return
175           new org.apache.axis.encoding.ser.BeanSerializer(
176             _javaType, _xmlType, typeDesc);
177     }
178
179     /**
180      * Get Custom Deserializer
181      */

182     public static org.apache.axis.encoding.Deserializer getDeserializer(
183            java.lang.String JavaDoc mechType,
184            java.lang.Class JavaDoc _javaType,
185            javax.xml.namespace.QName JavaDoc _xmlType) {
186         return
187           new org.apache.axis.encoding.ser.BeanDeserializer(
188             _javaType, _xmlType, typeDesc);
189     }
190
191 }
192
Popular Tags