1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class NodeDefinition implements java.io.Serializable { 11 private org.alfresco.repo.webservice.types.ClassDefinition type; 12 13 private org.alfresco.repo.webservice.types.ClassDefinition[] aspects; 14 15 public NodeDefinition() { 16 } 17 18 public NodeDefinition( 19 org.alfresco.repo.webservice.types.ClassDefinition type, 20 org.alfresco.repo.webservice.types.ClassDefinition[] aspects) { 21 this.type = type; 22 this.aspects = aspects; 23 } 24 25 26 31 public org.alfresco.repo.webservice.types.ClassDefinition getType() { 32 return type; 33 } 34 35 36 41 public void setType(org.alfresco.repo.webservice.types.ClassDefinition type) { 42 this.type = type; 43 } 44 45 46 51 public org.alfresco.repo.webservice.types.ClassDefinition[] getAspects() { 52 return aspects; 53 } 54 55 56 61 public void setAspects(org.alfresco.repo.webservice.types.ClassDefinition[] aspects) { 62 this.aspects = aspects; 63 } 64 65 public org.alfresco.repo.webservice.types.ClassDefinition getAspects(int i) { 66 return this.aspects[i]; 67 } 68 69 public void setAspects(int i, org.alfresco.repo.webservice.types.ClassDefinition _value) { 70 this.aspects[i] = _value; 71 } 72 73 private java.lang.Object __equalsCalc = null; 74 public synchronized boolean equals(java.lang.Object obj) { 75 if (!(obj instanceof NodeDefinition)) return false; 76 NodeDefinition other = (NodeDefinition) obj; 77 if (obj == null) return false; 78 if (this == obj) return true; 79 if (__equalsCalc != null) { 80 return (__equalsCalc == obj); 81 } 82 __equalsCalc = obj; 83 boolean _equals; 84 _equals = true && 85 ((this.type==null && other.getType()==null) || 86 (this.type!=null && 87 this.type.equals(other.getType()))) && 88 ((this.aspects==null && other.getAspects()==null) || 89 (this.aspects!=null && 90 java.util.Arrays.equals(this.aspects, other.getAspects()))); 91 __equalsCalc = null; 92 return _equals; 93 } 94 95 private boolean __hashCodeCalc = false; 96 public synchronized int hashCode() { 97 if (__hashCodeCalc) { 98 return 0; 99 } 100 __hashCodeCalc = true; 101 int _hashCode = 1; 102 if (getType() != null) { 103 _hashCode += getType().hashCode(); 104 } 105 if (getAspects() != null) { 106 for (int i=0; 107 i<java.lang.reflect.Array.getLength(getAspects()); 108 i++) { 109 java.lang.Object obj = java.lang.reflect.Array.get(getAspects(), i); 110 if (obj != null && 111 !obj.getClass().isArray()) { 112 _hashCode += obj.hashCode(); 113 } 114 } 115 } 116 __hashCodeCalc = false; 117 return _hashCode; 118 } 119 120 private static org.apache.axis.description.TypeDesc typeDesc = 122 new org.apache.axis.description.TypeDesc(NodeDefinition.class, true); 123 124 static { 125 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NodeDefinition")); 126 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 127 elemField.setFieldName("type"); 128 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "type")); 129 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition")); 130 elemField.setNillable(false); 131 typeDesc.addFieldDesc(elemField); 132 elemField = new org.apache.axis.description.ElementDesc(); 133 elemField.setFieldName("aspects"); 134 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "aspects")); 135 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition")); 136 elemField.setMinOccurs(0); 137 elemField.setNillable(false); 138 elemField.setMaxOccursUnbounded(true); 139 typeDesc.addFieldDesc(elemField); 140 } 141 142 145 public static org.apache.axis.description.TypeDesc getTypeDesc() { 146 return typeDesc; 147 } 148 149 152 public static org.apache.axis.encoding.Serializer getSerializer( 153 java.lang.String mechType, 154 java.lang.Class _javaType, 155 javax.xml.namespace.QName _xmlType) { 156 return 157 new org.apache.axis.encoding.ser.BeanSerializer( 158 _javaType, _xmlType, typeDesc); 159 } 160 161 164 public static org.apache.axis.encoding.Deserializer getDeserializer( 165 java.lang.String mechType, 166 java.lang.Class _javaType, 167 javax.xml.namespace.QName _xmlType) { 168 return 169 new org.apache.axis.encoding.ser.BeanDeserializer( 170 _javaType, _xmlType, typeDesc); 171 } 172 173 } 174 | Popular Tags |