001: /**
002: * SimpleDocument_Type.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package interop.wsifserviceWrapped;
007:
008: public class SimpleDocument_Type implements java.io.Serializable,
009: org.apache.axis.encoding.SimpleType {
010: private java.lang.String value;
011:
012: public SimpleDocument_Type() {
013: }
014:
015: // Simple Types must have a String constructor
016: public SimpleDocument_Type(java.lang.String value) {
017: this .value = new java.lang.String(value);
018: }
019:
020: // Simple Types must have a toString for serializing the value
021: public java.lang.String toString() {
022: return value == null ? null : value.toString();
023: }
024:
025: public java.lang.String getValue() {
026: return value;
027: }
028:
029: public void setValue(java.lang.String value) {
030: this .value = value;
031: }
032:
033: private java.lang.Object __equalsCalc = null;
034:
035: public synchronized boolean equals(java.lang.Object obj) {
036: if (!(obj instanceof SimpleDocument_Type))
037: return false;
038: SimpleDocument_Type other = (SimpleDocument_Type) obj;
039: if (obj == null)
040: return false;
041: if (this == obj)
042: return true;
043: if (__equalsCalc != null) {
044: return (__equalsCalc == obj);
045: }
046: __equalsCalc = obj;
047: boolean _equals;
048: _equals = true && ((value == null && other.getValue() == null) || (value != null && value
049: .equals(other.getValue())));
050: __equalsCalc = null;
051: return _equals;
052: }
053:
054: private boolean __hashCodeCalc = false;
055:
056: public synchronized int hashCode() {
057: if (__hashCodeCalc) {
058: return 0;
059: }
060: __hashCodeCalc = true;
061: int _hashCode = 1;
062: if (getValue() != null) {
063: _hashCode += getValue().hashCode();
064: }
065: __hashCodeCalc = false;
066: return _hashCode;
067: }
068:
069: // Type metadata
070: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
071: SimpleDocument_Type.class);
072:
073: static {
074: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
075: field.setFieldName("value");
076: field.setXmlName(new javax.xml.namespace.QName("", "value"));
077: field.setXmlType(new javax.xml.namespace.QName(
078: "http://www.w3.org/2001/XMLSchema", "string"));
079: typeDesc.addFieldDesc(field);
080: };
081:
082: /**
083: * Return type metadata object
084: */
085: public static org.apache.axis.description.TypeDesc getTypeDesc() {
086: return typeDesc;
087: }
088:
089: /**
090: * Get Custom Serializer
091: */
092: public static org.apache.axis.encoding.Serializer getSerializer(
093: java.lang.String mechType, java.lang.Class _javaType,
094: javax.xml.namespace.QName _xmlType) {
095: return new org.apache.axis.encoding.ser.SimpleSerializer(
096: _javaType, _xmlType, typeDesc);
097: }
098:
099: /**
100: * Get Custom Deserializer
101: */
102: public static org.apache.axis.encoding.Deserializer getDeserializer(
103: java.lang.String mechType, java.lang.Class _javaType,
104: javax.xml.namespace.QName _xmlType) {
105: return new org.apache.axis.encoding.ser.SimpleDeserializer(
106: _javaType, _xmlType, typeDesc);
107: }
108:
109: }
|