1 7 8 package org.alfresco.example.webservice.types; 9 10 public class NamespaceConfigurationMapping implements java.io.Serializable { 11 private org.apache.axis.types.NCName prefix; 12 private java.lang.String uri; 13 14 public NamespaceConfigurationMapping() { 15 } 16 17 public NamespaceConfigurationMapping( 18 org.apache.axis.types.NCName prefix, 19 java.lang.String uri) { 20 this.prefix = prefix; 21 this.uri = uri; 22 } 23 24 25 30 public org.apache.axis.types.NCName getPrefix() { 31 return prefix; 32 } 33 34 35 40 public void setPrefix(org.apache.axis.types.NCName prefix) { 41 this.prefix = prefix; 42 } 43 44 45 50 public java.lang.String getUri() { 51 return uri; 52 } 53 54 55 60 public void setUri(java.lang.String uri) { 61 this.uri = uri; 62 } 63 64 private java.lang.Object __equalsCalc = null; 65 public synchronized boolean equals(java.lang.Object obj) { 66 if (!(obj instanceof NamespaceConfigurationMapping)) return false; 67 NamespaceConfigurationMapping other = (NamespaceConfigurationMapping) obj; 68 if (obj == null) return false; 69 if (this == obj) return true; 70 if (__equalsCalc != null) { 71 return (__equalsCalc == obj); 72 } 73 __equalsCalc = obj; 74 boolean _equals; 75 _equals = true && 76 ((this.prefix==null && other.getPrefix()==null) || 77 (this.prefix!=null && 78 this.prefix.equals(other.getPrefix()))) && 79 ((this.uri==null && other.getUri()==null) || 80 (this.uri!=null && 81 this.uri.equals(other.getUri()))); 82 __equalsCalc = null; 83 return _equals; 84 } 85 86 private boolean __hashCodeCalc = false; 87 public synchronized int hashCode() { 88 if (__hashCodeCalc) { 89 return 0; 90 } 91 __hashCodeCalc = true; 92 int _hashCode = 1; 93 if (getPrefix() != null) { 94 _hashCode += getPrefix().hashCode(); 95 } 96 if (getUri() != null) { 97 _hashCode += getUri().hashCode(); 98 } 99 __hashCodeCalc = false; 100 return _hashCode; 101 } 102 103 private static org.apache.axis.description.TypeDesc typeDesc = 105 new org.apache.axis.description.TypeDesc(NamespaceConfigurationMapping.class, true); 106 107 static { 108 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/headers/1.0", ">NamespaceConfiguration>mapping")); 109 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 110 elemField.setFieldName("prefix"); 111 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/headers/1.0", "prefix")); 112 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "NCName")); 113 elemField.setNillable(false); 114 typeDesc.addFieldDesc(elemField); 115 elemField = new org.apache.axis.description.ElementDesc(); 116 elemField.setFieldName("uri"); 117 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/headers/1.0", "uri")); 118 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 119 elemField.setNillable(false); 120 typeDesc.addFieldDesc(elemField); 121 } 122 123 126 public static org.apache.axis.description.TypeDesc getTypeDesc() { 127 return typeDesc; 128 } 129 130 133 public static org.apache.axis.encoding.Serializer getSerializer( 134 java.lang.String mechType, 135 java.lang.Class _javaType, 136 javax.xml.namespace.QName _xmlType) { 137 return 138 new org.apache.axis.encoding.ser.BeanSerializer( 139 _javaType, _xmlType, typeDesc); 140 } 141 142 145 public static org.apache.axis.encoding.Deserializer getDeserializer( 146 java.lang.String mechType, 147 java.lang.Class _javaType, 148 javax.xml.namespace.QName _xmlType) { 149 return 150 new org.apache.axis.encoding.ser.BeanDeserializer( 151 _javaType, _xmlType, typeDesc); 152 } 153 154 } 155 | Popular Tags |