1 7 8 package org.alfresco.webservice.types; 9 10 public class ContentFormat implements java.io.Serializable { 11 13 private java.lang.String mimetype; 14 15 17 private java.lang.String encoding; 18 19 public ContentFormat() { 20 } 21 22 public ContentFormat( 23 java.lang.String mimetype, 24 java.lang.String encoding) { 25 this.mimetype = mimetype; 26 this.encoding = encoding; 27 } 28 29 30 36 public java.lang.String getMimetype() { 37 return mimetype; 38 } 39 40 41 47 public void setMimetype(java.lang.String mimetype) { 48 this.mimetype = mimetype; 49 } 50 51 52 58 public java.lang.String getEncoding() { 59 return encoding; 60 } 61 62 63 69 public void setEncoding(java.lang.String encoding) { 70 this.encoding = encoding; 71 } 72 73 private java.lang.Object __equalsCalc = null; 74 public synchronized boolean equals(java.lang.Object obj) { 75 if (!(obj instanceof ContentFormat)) return false; 76 ContentFormat other = (ContentFormat) 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.mimetype==null && other.getMimetype()==null) || 86 (this.mimetype!=null && 87 this.mimetype.equals(other.getMimetype()))) && 88 ((this.encoding==null && other.getEncoding()==null) || 89 (this.encoding!=null && 90 this.encoding.equals(other.getEncoding()))); 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 (getMimetype() != null) { 103 _hashCode += getMimetype().hashCode(); 104 } 105 if (getEncoding() != null) { 106 _hashCode += getEncoding().hashCode(); 107 } 108 __hashCodeCalc = false; 109 return _hashCode; 110 } 111 112 private static org.apache.axis.description.TypeDesc typeDesc = 114 new org.apache.axis.description.TypeDesc(ContentFormat.class, true); 115 116 static { 117 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat")); 118 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 119 elemField.setFieldName("mimetype"); 120 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "mimetype")); 121 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 122 elemField.setNillable(false); 123 typeDesc.addFieldDesc(elemField); 124 elemField = new org.apache.axis.description.ElementDesc(); 125 elemField.setFieldName("encoding"); 126 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "encoding")); 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 |