1 7 8 package org.alfresco.example.webservice.types; 9 10 public class CMLCreate implements java.io.Serializable { 11 private java.lang.String id; 12 private org.alfresco.example.webservice.types.ParentReference parent; 13 private java.lang.String type; 14 private org.alfresco.example.webservice.types.NamedValue[] property; 15 16 public CMLCreate() { 17 } 18 19 public CMLCreate( 20 java.lang.String id, 21 org.alfresco.example.webservice.types.ParentReference parent, 22 java.lang.String type, 23 org.alfresco.example.webservice.types.NamedValue[] property) { 24 this.id = id; 25 this.parent = parent; 26 this.type = type; 27 this.property = property; 28 } 29 30 31 36 public java.lang.String getId() { 37 return id; 38 } 39 40 41 46 public void setId(java.lang.String id) { 47 this.id = id; 48 } 49 50 51 56 public org.alfresco.example.webservice.types.ParentReference getParent() { 57 return parent; 58 } 59 60 61 66 public void setParent(org.alfresco.example.webservice.types.ParentReference parent) { 67 this.parent = parent; 68 } 69 70 71 76 public java.lang.String getType() { 77 return type; 78 } 79 80 81 86 public void setType(java.lang.String type) { 87 this.type = type; 88 } 89 90 91 96 public org.alfresco.example.webservice.types.NamedValue[] getProperty() { 97 return property; 98 } 99 100 101 106 public void setProperty(org.alfresco.example.webservice.types.NamedValue[] property) { 107 this.property = property; 108 } 109 110 public org.alfresco.example.webservice.types.NamedValue getProperty(int i) { 111 return this.property[i]; 112 } 113 114 public void setProperty(int i, org.alfresco.example.webservice.types.NamedValue _value) { 115 this.property[i] = _value; 116 } 117 118 private java.lang.Object __equalsCalc = null; 119 public synchronized boolean equals(java.lang.Object obj) { 120 if (!(obj instanceof CMLCreate)) return false; 121 CMLCreate other = (CMLCreate) obj; 122 if (obj == null) return false; 123 if (this == obj) return true; 124 if (__equalsCalc != null) { 125 return (__equalsCalc == obj); 126 } 127 __equalsCalc = obj; 128 boolean _equals; 129 _equals = true && 130 ((this.id==null && other.getId()==null) || 131 (this.id!=null && 132 this.id.equals(other.getId()))) && 133 ((this.parent==null && other.getParent()==null) || 134 (this.parent!=null && 135 this.parent.equals(other.getParent()))) && 136 ((this.type==null && other.getType()==null) || 137 (this.type!=null && 138 this.type.equals(other.getType()))) && 139 ((this.property==null && other.getProperty()==null) || 140 (this.property!=null && 141 java.util.Arrays.equals(this.property, other.getProperty()))); 142 __equalsCalc = null; 143 return _equals; 144 } 145 146 private boolean __hashCodeCalc = false; 147 public synchronized int hashCode() { 148 if (__hashCodeCalc) { 149 return 0; 150 } 151 __hashCodeCalc = true; 152 int _hashCode = 1; 153 if (getId() != null) { 154 _hashCode += getId().hashCode(); 155 } 156 if (getParent() != null) { 157 _hashCode += getParent().hashCode(); 158 } 159 if (getType() != null) { 160 _hashCode += getType().hashCode(); 161 } 162 if (getProperty() != null) { 163 for (int i=0; 164 i<java.lang.reflect.Array.getLength(getProperty()); 165 i++) { 166 java.lang.Object obj = java.lang.reflect.Array.get(getProperty(), i); 167 if (obj != null && 168 !obj.getClass().isArray()) { 169 _hashCode += obj.hashCode(); 170 } 171 } 172 } 173 __hashCodeCalc = false; 174 return _hashCode; 175 } 176 177 private static org.apache.axis.description.TypeDesc typeDesc = 179 new org.apache.axis.description.TypeDesc(CMLCreate.class, true); 180 181 static { 182 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>create")); 183 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 184 elemField.setFieldName("id"); 185 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "id")); 186 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 187 elemField.setMinOccurs(0); 188 elemField.setNillable(false); 189 typeDesc.addFieldDesc(elemField); 190 elemField = new org.apache.axis.description.ElementDesc(); 191 elemField.setFieldName("parent"); 192 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "parent")); 193 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ParentReference")); 194 elemField.setNillable(false); 195 typeDesc.addFieldDesc(elemField); 196 elemField = new org.apache.axis.description.ElementDesc(); 197 elemField.setFieldName("type"); 198 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "type")); 199 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 200 elemField.setMinOccurs(0); 201 elemField.setNillable(false); 202 typeDesc.addFieldDesc(elemField); 203 elemField = new org.apache.axis.description.ElementDesc(); 204 elemField.setFieldName("property"); 205 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "property")); 206 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 207 elemField.setMinOccurs(0); 208 elemField.setNillable(false); 209 elemField.setMaxOccursUnbounded(true); 210 typeDesc.addFieldDesc(elemField); 211 } 212 213 216 public static org.apache.axis.description.TypeDesc getTypeDesc() { 217 return typeDesc; 218 } 219 220 223 public static org.apache.axis.encoding.Serializer getSerializer( 224 java.lang.String mechType, 225 java.lang.Class _javaType, 226 javax.xml.namespace.QName _xmlType) { 227 return 228 new org.apache.axis.encoding.ser.BeanSerializer( 229 _javaType, _xmlType, typeDesc); 230 } 231 232 235 public static org.apache.axis.encoding.Deserializer getDeserializer( 236 java.lang.String mechType, 237 java.lang.Class _javaType, 238 javax.xml.namespace.QName _xmlType) { 239 return 240 new org.apache.axis.encoding.ser.BeanDeserializer( 241 _javaType, _xmlType, typeDesc); 242 } 243 244 } 245 | Popular Tags |