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