001: /**
002: * DirectoryCategory.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC2 Dec 15, 2004 (10:53:17 CET) WSDL2Java emitter.
006: */package org.objectweb.wssample.gen.google;
007:
008: public class DirectoryCategory implements java.io.Serializable {
009: private java.lang.String fullViewableName;
010: private java.lang.String specialEncoding;
011:
012: public DirectoryCategory() {
013: }
014:
015: public DirectoryCategory(java.lang.String fullViewableName,
016: java.lang.String specialEncoding) {
017: this .fullViewableName = fullViewableName;
018: this .specialEncoding = specialEncoding;
019: }
020:
021: /**
022: * Gets the fullViewableName value for this DirectoryCategory.
023: *
024: * @return fullViewableName
025: */
026: public java.lang.String getFullViewableName() {
027: return fullViewableName;
028: }
029:
030: /**
031: * Sets the fullViewableName value for this DirectoryCategory.
032: *
033: * @param fullViewableName
034: */
035: public void setFullViewableName(java.lang.String fullViewableName) {
036: this .fullViewableName = fullViewableName;
037: }
038:
039: /**
040: * Gets the specialEncoding value for this DirectoryCategory.
041: *
042: * @return specialEncoding
043: */
044: public java.lang.String getSpecialEncoding() {
045: return specialEncoding;
046: }
047:
048: /**
049: * Sets the specialEncoding value for this DirectoryCategory.
050: *
051: * @param specialEncoding
052: */
053: public void setSpecialEncoding(java.lang.String specialEncoding) {
054: this .specialEncoding = specialEncoding;
055: }
056:
057: private java.lang.Object __equalsCalc = null;
058:
059: public synchronized boolean equals(java.lang.Object obj) {
060: if (!(obj instanceof DirectoryCategory))
061: return false;
062: DirectoryCategory other = (DirectoryCategory) obj;
063: if (obj == null)
064: return false;
065: if (this == obj)
066: return true;
067: if (__equalsCalc != null) {
068: return (__equalsCalc == obj);
069: }
070: __equalsCalc = obj;
071: boolean _equals;
072: _equals = true
073: && ((this .fullViewableName == null && other
074: .getFullViewableName() == null) || (this .fullViewableName != null && this .fullViewableName
075: .equals(other.getFullViewableName())))
076: && ((this .specialEncoding == null && other
077: .getSpecialEncoding() == null) || (this .specialEncoding != null && this .specialEncoding
078: .equals(other.getSpecialEncoding())));
079: __equalsCalc = null;
080: return _equals;
081: }
082:
083: private boolean __hashCodeCalc = false;
084:
085: public synchronized int hashCode() {
086: if (__hashCodeCalc) {
087: return 0;
088: }
089: __hashCodeCalc = true;
090: int _hashCode = 1;
091: if (getFullViewableName() != null) {
092: _hashCode += getFullViewableName().hashCode();
093: }
094: if (getSpecialEncoding() != null) {
095: _hashCode += getSpecialEncoding().hashCode();
096: }
097: __hashCodeCalc = false;
098: return _hashCode;
099: }
100:
101: // Type metadata
102: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
103: DirectoryCategory.class, true);
104:
105: static {
106: typeDesc.setXmlType(new javax.xml.namespace.QName(
107: "urn:GoogleSearch", "DirectoryCategory"));
108: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
109: elemField.setFieldName("fullViewableName");
110: elemField.setXmlName(new javax.xml.namespace.QName("",
111: "fullViewableName"));
112: elemField.setXmlType(new javax.xml.namespace.QName(
113: "http://www.w3.org/2001/XMLSchema", "string"));
114: typeDesc.addFieldDesc(elemField);
115: elemField = new org.apache.axis.description.ElementDesc();
116: elemField.setFieldName("specialEncoding");
117: elemField.setXmlName(new javax.xml.namespace.QName("",
118: "specialEncoding"));
119: elemField.setXmlType(new javax.xml.namespace.QName(
120: "http://www.w3.org/2001/XMLSchema", "string"));
121: typeDesc.addFieldDesc(elemField);
122: }
123:
124: /**
125: * Return type metadata object
126: */
127: public static org.apache.axis.description.TypeDesc getTypeDesc() {
128: return typeDesc;
129: }
130:
131: /**
132: * Get Custom Serializer
133: */
134: public static org.apache.axis.encoding.Serializer getSerializer(
135: java.lang.String mechType, java.lang.Class _javaType,
136: javax.xml.namespace.QName _xmlType) {
137: return new org.apache.axis.encoding.ser.BeanSerializer(
138: _javaType, _xmlType, typeDesc);
139: }
140:
141: /**
142: * Get Custom Deserializer
143: */
144: public static org.apache.axis.encoding.Deserializer getDeserializer(
145: java.lang.String mechType, java.lang.Class _javaType,
146: javax.xml.namespace.QName _xmlType) {
147: return new org.apache.axis.encoding.ser.BeanDeserializer(
148: _javaType, _xmlType, typeDesc);
149: }
150:
151: }
|