1 7 8 package org.alfresco.example.webservice.types; 9 10 public class ParentReference extends org.alfresco.example.webservice.types.Reference implements java.io.Serializable { 11 private java.lang.String associationType; 12 private java.lang.String childName; 13 14 public ParentReference() { 15 } 16 17 public ParentReference( 18 java.lang.String associationType, 19 java.lang.String childName) { 20 this.associationType = associationType; 21 this.childName = childName; 22 } 23 24 25 30 public java.lang.String getAssociationType() { 31 return associationType; 32 } 33 34 35 40 public void setAssociationType(java.lang.String associationType) { 41 this.associationType = associationType; 42 } 43 44 45 50 public java.lang.String getChildName() { 51 return childName; 52 } 53 54 55 60 public void setChildName(java.lang.String childName) { 61 this.childName = childName; 62 } 63 64 private java.lang.Object __equalsCalc = null; 65 public synchronized boolean equals(java.lang.Object obj) { 66 if (!(obj instanceof ParentReference)) return false; 67 ParentReference other = (ParentReference) obj; 68 if (obj == null) return false; 69 if (this == obj) return true; 70 if (__equalsCalc != null) { 71 return (__equalsCalc == obj); 72 } 73 __equalsCalc = obj; 74 boolean _equals; 75 _equals = super.equals(obj) && 76 ((this.associationType==null && other.getAssociationType()==null) || 77 (this.associationType!=null && 78 this.associationType.equals(other.getAssociationType()))) && 79 ((this.childName==null && other.getChildName()==null) || 80 (this.childName!=null && 81 this.childName.equals(other.getChildName()))); 82 __equalsCalc = null; 83 return _equals; 84 } 85 86 private boolean __hashCodeCalc = false; 87 public synchronized int hashCode() { 88 if (__hashCodeCalc) { 89 return 0; 90 } 91 __hashCodeCalc = true; 92 int _hashCode = super.hashCode(); 93 if (getAssociationType() != null) { 94 _hashCode += getAssociationType().hashCode(); 95 } 96 if (getChildName() != null) { 97 _hashCode += getChildName().hashCode(); 98 } 99 __hashCodeCalc = false; 100 return _hashCode; 101 } 102 103 private static org.apache.axis.description.TypeDesc typeDesc = 105 new org.apache.axis.description.TypeDesc(ParentReference.class, true); 106 107 static { 108 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ParentReference")); 109 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 110 elemField.setFieldName("associationType"); 111 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "associationType")); 112 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 113 elemField.setMinOccurs(0); 114 elemField.setNillable(false); 115 typeDesc.addFieldDesc(elemField); 116 elemField = new org.apache.axis.description.ElementDesc(); 117 elemField.setFieldName("childName"); 118 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "childName")); 119 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 120 elemField.setMinOccurs(0); 121 elemField.setNillable(false); 122 typeDesc.addFieldDesc(elemField); 123 } 124 125 128 public static org.apache.axis.description.TypeDesc getTypeDesc() { 129 return typeDesc; 130 } 131 132 135 public static org.apache.axis.encoding.Serializer getSerializer( 136 java.lang.String mechType, 137 java.lang.Class _javaType, 138 javax.xml.namespace.QName _xmlType) { 139 return 140 new org.apache.axis.encoding.ser.BeanSerializer( 141 _javaType, _xmlType, typeDesc); 142 } 143 144 147 public static org.apache.axis.encoding.Deserializer getDeserializer( 148 java.lang.String mechType, 149 java.lang.Class _javaType, 150 javax.xml.namespace.QName _xmlType) { 151 return 152 new org.apache.axis.encoding.ser.BeanDeserializer( 153 _javaType, _xmlType, typeDesc); 154 } 155 156 } 157 | Popular Tags |