View Javadoc

1   /***
2    * Identifier.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 class Identifier  implements java.io.Serializable, org.apache.axis.encoding.SimpleType {
11      private java.lang.String value;
12  
13      public Identifier() {
14      }
15  
16      // Simple Types must have a String constructor
17      public Identifier(java.lang.String value) {
18          this.value = new java.lang.String(value);
19      }
20  
21      // Simple Types must have a toString for serializing the value
22      public java.lang.String toString() {
23          return value == null ? null : value.toString();
24      }
25  
26      public java.lang.String getValue() {
27          return value;
28      }
29  
30      public void setValue(java.lang.String value) {
31          this.value = value;
32      }
33  
34      private java.lang.Object __equalsCalc = null;
35      public synchronized boolean equals(java.lang.Object obj) {
36          if (!(obj instanceof Identifier)) return false;
37          Identifier other = (Identifier) obj;
38          if (obj == null) return false;
39          if (this == obj) return true;
40          if (__equalsCalc != null) {
41              return (__equalsCalc == obj);
42          }
43          __equalsCalc = obj;
44          boolean _equals;
45          _equals = true && 
46              ((this.value==null && other.getValue()==null) || 
47               (this.value!=null &&
48                this.value.equals(other.getValue())));
49          __equalsCalc = null;
50          return _equals;
51      }
52  
53      private boolean __hashCodeCalc = false;
54      public synchronized int hashCode() {
55          if (__hashCodeCalc) {
56              return 0;
57          }
58          __hashCodeCalc = true;
59          int _hashCode = 1;
60          if (getValue() != null) {
61              _hashCode += getValue().hashCode();
62          }
63          __hashCodeCalc = false;
64          return _hashCode;
65      }
66  
67      // Type metadata
68      private static org.apache.axis.description.TypeDesc typeDesc =
69          new org.apache.axis.description.TypeDesc(Identifier.class);
70  
71      static {
72          typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/Credentials/v1", "Identifier"));
73          org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
74          elemField.setFieldName("value");
75          elemField.setXmlName(new javax.xml.namespace.QName("", "value"));
76          elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
77          typeDesc.addFieldDesc(elemField);
78      }
79  
80      /***
81       * Return type metadata object
82       */
83      public static org.apache.axis.description.TypeDesc getTypeDesc() {
84          return typeDesc;
85      }
86  
87      /***
88       * Get Custom Serializer
89       */
90      public static org.apache.axis.encoding.Serializer getSerializer(
91             java.lang.String mechType, 
92             java.lang.Class _javaType,  
93             javax.xml.namespace.QName _xmlType) {
94          return 
95            new  org.apache.axis.encoding.ser.SimpleSerializer(
96              _javaType, _xmlType, typeDesc);
97      }
98  
99      /***
100      * Get Custom Deserializer
101      */
102     public static org.apache.axis.encoding.Deserializer getDeserializer(
103            java.lang.String mechType, 
104            java.lang.Class _javaType,  
105            javax.xml.namespace.QName _xmlType) {
106         return 
107           new  org.apache.axis.encoding.ser.SimpleDeserializer(
108             _javaType, _xmlType, typeDesc);
109     }
110 
111 }