KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > interop > wsifserviceWrapped > SimpleDocument_Type


1 /**
2  * SimpleDocument_Type.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

7
8 package interop.wsifserviceWrapped;
9
10 public class SimpleDocument_Type implements java.io.Serializable JavaDoc, org.apache.axis.encoding.SimpleType {
11     private java.lang.String JavaDoc value;
12
13     public SimpleDocument_Type() {
14     }
15
16     // Simple Types must have a String constructor
17
public SimpleDocument_Type(java.lang.String JavaDoc value) {
18         this.value = new java.lang.String JavaDoc(value);
19     }
20
21     // Simple Types must have a toString for serializing the value
22
public java.lang.String JavaDoc toString() {
23         return value == null ? null : value.toString();
24     }
25
26     public java.lang.String JavaDoc getValue() {
27         return value;
28     }
29
30     public void setValue(java.lang.String JavaDoc value) {
31         this.value = value;
32     }
33
34     private java.lang.Object JavaDoc __equalsCalc = null;
35     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
36         if (!(obj instanceof SimpleDocument_Type)) return false;
37         SimpleDocument_Type other = (SimpleDocument_Type) 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             ((value==null && other.getValue()==null) ||
47              (value!=null &&
48               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(SimpleDocument_Type.class);
70
71     static {
72         org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
73         field.setFieldName("value");
74         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "value"));
75         field.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
76         typeDesc.addFieldDesc(field);
77     };
78
79     /**
80      * Return type metadata object
81      */

82     public static org.apache.axis.description.TypeDesc getTypeDesc() {
83         return typeDesc;
84     }
85
86     /**
87      * Get Custom Serializer
88      */

89     public static org.apache.axis.encoding.Serializer getSerializer(
90            java.lang.String JavaDoc mechType,
91            java.lang.Class JavaDoc _javaType,
92            javax.xml.namespace.QName JavaDoc _xmlType) {
93         return
94           new org.apache.axis.encoding.ser.SimpleSerializer(
95             _javaType, _xmlType, typeDesc);
96     }
97
98     /**
99      * Get Custom Deserializer
100      */

101     public static org.apache.axis.encoding.Deserializer getDeserializer(
102            java.lang.String JavaDoc mechType,
103            java.lang.Class JavaDoc _javaType,
104            javax.xml.namespace.QName JavaDoc _xmlType) {
105         return
106           new org.apache.axis.encoding.ser.SimpleDeserializer(
107             _javaType, _xmlType, typeDesc);
108     }
109
110 }
111
Popular Tags