1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class ParentReference extends org.alfresco.repo.webservice.types.Reference implements java.io.Serializable { 11 private java.lang.String associationType; 12 13 private java.lang.String childName; 14 15 public ParentReference() { 16 } 17 18 public ParentReference( 19 org.alfresco.repo.webservice.types.Store store, 20 java.lang.String uuid, 21 java.lang.String path, 22 java.lang.String associationType, 23 java.lang.String childName) { 24 super( 25 store, 26 uuid, 27 path); 28 this.associationType = associationType; 29 this.childName = childName; 30 } 31 32 33 38 public java.lang.String getAssociationType() { 39 return associationType; 40 } 41 42 43 48 public void setAssociationType(java.lang.String associationType) { 49 this.associationType = associationType; 50 } 51 52 53 58 public java.lang.String getChildName() { 59 return childName; 60 } 61 62 63 68 public void setChildName(java.lang.String childName) { 69 this.childName = childName; 70 } 71 72 private java.lang.Object __equalsCalc = null; 73 public synchronized boolean equals(java.lang.Object 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 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 ("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 ("http://www.alfresco.org/ws/model/content/1.0", "associationType")); 120 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/model/content/1.0", "childName")); 127 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 128 elemField.setMinOccurs(0); 129 elemField.setNillable(false); 130 typeDesc.addFieldDesc(elemField); 131 } 132 133 136 public static org.apache.axis.description.TypeDesc getTypeDesc() { 137 return typeDesc; 138 } 139 140 143 public static org.apache.axis.encoding.Serializer getSerializer( 144 java.lang.String mechType, 145 java.lang.Class _javaType, 146 javax.xml.namespace.QName _xmlType) { 147 return 148 new org.apache.axis.encoding.ser.BeanSerializer( 149 _javaType, _xmlType, typeDesc); 150 } 151 152 155 public static org.apache.axis.encoding.Deserializer getDeserializer( 156 java.lang.String mechType, 157 java.lang.Class _javaType, 158 javax.xml.namespace.QName _xmlType) { 159 return 160 new org.apache.axis.encoding.ser.BeanDeserializer( 161 _javaType, _xmlType, typeDesc); 162 } 163 164 } 165 | Popular Tags |