001: /**
002: * LocalizedString.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
006: */package oasis.names.tc.wsrp.v1.types;
007:
008: public class LocalizedString implements java.io.Serializable {
009: private java.lang.String value;
010: private java.lang.String lang; // attribute
011: private java.lang.String resourceName; // attribute
012:
013: public LocalizedString() {
014: }
015:
016: public LocalizedString(java.lang.String lang,
017: java.lang.String resourceName, java.lang.String value) {
018: this .value = value;
019: this .lang = lang;
020: this .resourceName = resourceName;
021: }
022:
023: /**
024: * Gets the value value for this LocalizedString.
025: *
026: * @return value
027: */
028: public java.lang.String getValue() {
029: return value;
030: }
031:
032: /**
033: * Sets the value value for this LocalizedString.
034: *
035: * @param value
036: */
037: public void setValue(java.lang.String value) {
038: this .value = value;
039: }
040:
041: /**
042: * Gets the lang value for this LocalizedString.
043: *
044: * @return lang
045: */
046: public java.lang.String getLang() {
047: return lang;
048: }
049:
050: /**
051: * Sets the lang value for this LocalizedString.
052: *
053: * @param lang
054: */
055: public void setLang(java.lang.String lang) {
056: this .lang = lang;
057: }
058:
059: /**
060: * Gets the resourceName value for this LocalizedString.
061: *
062: * @return resourceName
063: */
064: public java.lang.String getResourceName() {
065: return resourceName;
066: }
067:
068: /**
069: * Sets the resourceName value for this LocalizedString.
070: *
071: * @param resourceName
072: */
073: public void setResourceName(java.lang.String resourceName) {
074: this .resourceName = resourceName;
075: }
076:
077: private java.lang.Object __equalsCalc = null;
078:
079: public synchronized boolean equals(java.lang.Object obj) {
080: if (!(obj instanceof LocalizedString))
081: return false;
082: LocalizedString other = (LocalizedString) obj;
083: if (obj == null)
084: return false;
085: if (this == obj)
086: return true;
087: if (__equalsCalc != null) {
088: return (__equalsCalc == obj);
089: }
090: __equalsCalc = obj;
091: boolean _equals;
092: _equals = true
093: && ((this .value == null && other.getValue() == null) || (this .value != null && this .value
094: .equals(other.getValue())))
095: && ((this .lang == null && other.getLang() == null) || (this .lang != null && this .lang
096: .equals(other.getLang())))
097: && ((this .resourceName == null && other
098: .getResourceName() == null) || (this .resourceName != null && this .resourceName
099: .equals(other.getResourceName())));
100: __equalsCalc = null;
101: return _equals;
102: }
103:
104: private boolean __hashCodeCalc = false;
105:
106: public synchronized int hashCode() {
107: if (__hashCodeCalc) {
108: return 0;
109: }
110: __hashCodeCalc = true;
111: int _hashCode = 1;
112: if (getValue() != null) {
113: _hashCode += getValue().hashCode();
114: }
115: if (getLang() != null) {
116: _hashCode += getLang().hashCode();
117: }
118: if (getResourceName() != null) {
119: _hashCode += getResourceName().hashCode();
120: }
121: __hashCodeCalc = false;
122: return _hashCode;
123: }
124:
125: // Type metadata
126: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
127: LocalizedString.class, true);
128:
129: static {
130: typeDesc.setXmlType(new javax.xml.namespace.QName(
131: "urn:oasis:names:tc:wsrp:v1:types", "LocalizedString"));
132: org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
133: attrField.setFieldName("lang");
134: attrField.setXmlName(new javax.xml.namespace.QName("", "lang"));
135: attrField.setXmlType(new javax.xml.namespace.QName(
136: "http://www.w3.org/2001/XMLSchema", "string"));
137: typeDesc.addFieldDesc(attrField);
138: attrField = new org.apache.axis.description.AttributeDesc();
139: attrField.setFieldName("resourceName");
140: attrField.setXmlName(new javax.xml.namespace.QName("",
141: "resourceName"));
142: attrField.setXmlType(new javax.xml.namespace.QName(
143: "http://www.w3.org/2001/XMLSchema", "string"));
144: typeDesc.addFieldDesc(attrField);
145: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
146: elemField.setFieldName("value");
147: elemField.setXmlName(new javax.xml.namespace.QName(
148: "urn:oasis:names:tc:wsrp:v1:types", "value"));
149: elemField.setXmlType(new javax.xml.namespace.QName(
150: "http://www.w3.org/2001/XMLSchema", "string"));
151: typeDesc.addFieldDesc(elemField);
152: }
153:
154: /**
155: * Return type metadata object
156: */
157: public static org.apache.axis.description.TypeDesc getTypeDesc() {
158: return typeDesc;
159: }
160:
161: /**
162: * Get Custom Serializer
163: */
164: public static org.apache.axis.encoding.Serializer getSerializer(
165: java.lang.String mechType, java.lang.Class _javaType,
166: javax.xml.namespace.QName _xmlType) {
167: return new org.apache.axis.encoding.ser.BeanSerializer(
168: _javaType, _xmlType, typeDesc);
169: }
170:
171: /**
172: * Get Custom Deserializer
173: */
174: public static org.apache.axis.encoding.Deserializer getDeserializer(
175: java.lang.String mechType, java.lang.Class _javaType,
176: javax.xml.namespace.QName _xmlType) {
177: return new org.apache.axis.encoding.ser.BeanDeserializer(
178: _javaType, _xmlType, typeDesc);
179: }
180:
181: }
|