1 /***
2 * BaseIdentifier.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
6 */
7
8 package org.astrogrid.community.beans.v1.axis;
9
10 public abstract class BaseIdentifier implements java.io.Serializable {
11 private org.astrogrid.community.beans.v1.axis.Identifier name;
12 private org.astrogrid.community.beans.v1.axis.Identifier community;
13
14 public BaseIdentifier() {
15 }
16
17 public org.astrogrid.community.beans.v1.axis.Identifier getName() {
18 return name;
19 }
20
21 public void setName(org.astrogrid.community.beans.v1.axis.Identifier name) {
22 this.name = name;
23 }
24
25 public org.astrogrid.community.beans.v1.axis.Identifier getCommunity() {
26 return community;
27 }
28
29 public void setCommunity(org.astrogrid.community.beans.v1.axis.Identifier community) {
30 this.community = community;
31 }
32
33 private java.lang.Object __equalsCalc = null;
34 public synchronized boolean equals(java.lang.Object obj) {
35 if (!(obj instanceof BaseIdentifier)) return false;
36 BaseIdentifier other = (BaseIdentifier) obj;
37 if (obj == null) return false;
38 if (this == obj) return true;
39 if (__equalsCalc != null) {
40 return (__equalsCalc == obj);
41 }
42 __equalsCalc = obj;
43 boolean _equals;
44 _equals = true &&
45 ((this.name==null && other.getName()==null) ||
46 (this.name!=null &&
47 this.name.equals(other.getName()))) &&
48 ((this.community==null && other.getCommunity()==null) ||
49 (this.community!=null &&
50 this.community.equals(other.getCommunity())));
51 __equalsCalc = null;
52 return _equals;
53 }
54
55 private boolean __hashCodeCalc = false;
56 public synchronized int hashCode() {
57 if (__hashCodeCalc) {
58 return 0;
59 }
60 __hashCodeCalc = true;
61 int _hashCode = 1;
62 if (getName() != null) {
63 _hashCode += getName().hashCode();
64 }
65 if (getCommunity() != null) {
66 _hashCode += getCommunity().hashCode();
67 }
68 __hashCodeCalc = false;
69 return _hashCode;
70 }
71
72
73 private static org.apache.axis.description.TypeDesc typeDesc =
74 new org.apache.axis.description.TypeDesc(BaseIdentifier.class);
75
76 static {
77 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "BaseIdentifier"));
78 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
79 elemField.setFieldName("name");
80 elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Name"));
81 elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Identifier"));
82 typeDesc.addFieldDesc(elemField);
83 elemField = new org.apache.axis.description.ElementDesc();
84 elemField.setFieldName("community");
85 elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Community"));
86 elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Identifier"));
87 typeDesc.addFieldDesc(elemField);
88 }
89
90 /***
91 * Return type metadata object
92 */
93 public static org.apache.axis.description.TypeDesc getTypeDesc() {
94 return typeDesc;
95 }
96
97 /***
98 * Get Custom Serializer
99 */
100 public static org.apache.axis.encoding.Serializer getSerializer(
101 java.lang.String mechType,
102 java.lang.Class _javaType,
103 javax.xml.namespace.QName _xmlType) {
104 return
105 new org.apache.axis.encoding.ser.BeanSerializer(
106 _javaType, _xmlType, typeDesc);
107 }
108
109 /***
110 * Get Custom Deserializer
111 */
112 public static org.apache.axis.encoding.Deserializer getDeserializer(
113 java.lang.String mechType,
114 java.lang.Class _javaType,
115 javax.xml.namespace.QName _xmlType) {
116 return
117 new org.apache.axis.encoding.ser.BeanDeserializer(
118 _javaType, _xmlType, typeDesc);
119 }
120
121 }