KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > webservice > types > ParentReference


1 /**
2  * ParentReference.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.types;
9
10 public class ParentReference extends org.alfresco.webservice.types.Reference implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc associationType;
12
13     private java.lang.String JavaDoc childName;
14
15     public ParentReference() {
16     }
17
18     public ParentReference(
19            org.alfresco.webservice.types.Store store,
20            java.lang.String JavaDoc uuid,
21            java.lang.String JavaDoc path,
22            java.lang.String JavaDoc associationType,
23            java.lang.String JavaDoc childName) {
24         super(
25             store,
26             uuid,
27             path);
28         this.associationType = associationType;
29         this.childName = childName;
30     }
31
32
33     /**
34      * Gets the associationType value for this ParentReference.
35      *
36      * @return associationType
37      */

38     public java.lang.String JavaDoc getAssociationType() {
39         return associationType;
40     }
41
42
43     /**
44      * Sets the associationType value for this ParentReference.
45      *
46      * @param associationType
47      */

48     public void setAssociationType(java.lang.String JavaDoc associationType) {
49         this.associationType = associationType;
50     }
51
52
53     /**
54      * Gets the childName value for this ParentReference.
55      *
56      * @return childName
57      */

58     public java.lang.String JavaDoc getChildName() {
59         return childName;
60     }
61
62
63     /**
64      * Sets the childName value for this ParentReference.
65      *
66      * @param childName
67      */

68     public void setChildName(java.lang.String JavaDoc childName) {
69         this.childName = childName;
70     }
71
72     private java.lang.Object JavaDoc __equalsCalc = null;
73     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
74         if (!(obj instanceof ParentReference)) return false;
75         ParentReference other = (ParentReference) obj;
76         if (obj == null) return false;
77         if (this == obj) return true;
78         if (__equalsCalc != null) {
79             return (__equalsCalc == obj);
80         }
81         __equalsCalc = obj;
82         boolean _equals;
83         _equals = super.equals(obj) &&
84             ((this.associationType==null && other.getAssociationType()==null) ||
85              (this.associationType!=null &&
86               this.associationType.equals(other.getAssociationType()))) &&
87             ((this.childName==null && other.getChildName()==null) ||
88              (this.childName!=null &&
89               this.childName.equals(other.getChildName())));
90         __equalsCalc = null;
91         return _equals;
92     }
93
94     private boolean __hashCodeCalc = false;
95     public synchronized int hashCode() {
96         if (__hashCodeCalc) {
97             return 0;
98         }
99         __hashCodeCalc = true;
100         int _hashCode = super.hashCode();
101         if (getAssociationType() != null) {
102             _hashCode += getAssociationType().hashCode();
103         }
104         if (getChildName() != null) {
105             _hashCode += getChildName().hashCode();
106         }
107         __hashCodeCalc = false;
108         return _hashCode;
109     }
110
111     // Type metadata
112
private static org.apache.axis.description.TypeDesc typeDesc =
113         new org.apache.axis.description.TypeDesc(ParentReference.class, true);
114
115     static {
116         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference"));
117         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
118         elemField.setFieldName("associationType");
119         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "associationType"));
120         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
121         elemField.setMinOccurs(0);
122         elemField.setNillable(false);
123         typeDesc.addFieldDesc(elemField);
124         elemField = new org.apache.axis.description.ElementDesc();
125         elemField.setFieldName("childName");
126         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "childName"));
127         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
128         elemField.setMinOccurs(0);
129         elemField.setNillable(false);
130         typeDesc.addFieldDesc(elemField);
131     }
132
133     /**
134      * Return type metadata object
135      */

136     public static org.apache.axis.description.TypeDesc getTypeDesc() {
137         return typeDesc;
138     }
139
140     /**
141      * Get Custom Serializer
142      */

143     public static org.apache.axis.encoding.Serializer getSerializer(
144            java.lang.String JavaDoc mechType,
145            java.lang.Class JavaDoc _javaType,
146            javax.xml.namespace.QName JavaDoc _xmlType) {
147         return
148           new org.apache.axis.encoding.ser.BeanSerializer(
149             _javaType, _xmlType, typeDesc);
150     }
151
152     /**
153      * Get Custom Deserializer
154      */

155     public static org.apache.axis.encoding.Deserializer getDeserializer(
156            java.lang.String JavaDoc mechType,
157            java.lang.Class JavaDoc _javaType,
158            javax.xml.namespace.QName JavaDoc _xmlType) {
159         return
160           new org.apache.axis.encoding.ser.BeanDeserializer(
161             _javaType, _xmlType, typeDesc);
162     }
163
164 }
165
Popular Tags