1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class LocalizedString implements java.io.Serializable {
11 private java.lang.String value;
12 private java.lang.String lang; private java.lang.String resourceName;
15 public LocalizedString() {
16 }
17
18 public LocalizedString(
19 java.lang.String lang,
20 java.lang.String resourceName,
21 java.lang.String value) {
22 this.value = value;
23 this.lang = lang;
24 this.resourceName = resourceName;
25 }
26
27
28
33 public java.lang.String getValue() {
34 return value;
35 }
36
37
38
43 public void setValue(java.lang.String value) {
44 this.value = value;
45 }
46
47
48
53 public java.lang.String getLang() {
54 return lang;
55 }
56
57
58
63 public void setLang(java.lang.String lang) {
64 this.lang = lang;
65 }
66
67
68
73 public java.lang.String getResourceName() {
74 return resourceName;
75 }
76
77
78
83 public void setResourceName(java.lang.String resourceName) {
84 this.resourceName = resourceName;
85 }
86
87 private java.lang.Object __equalsCalc = null;
88 public synchronized boolean equals(java.lang.Object obj) {
89 if (!(obj instanceof LocalizedString)) return false;
90 LocalizedString other = (LocalizedString) obj;
91 if (obj == null) return false;
92 if (this == obj) return true;
93 if (__equalsCalc != null) {
94 return (__equalsCalc == obj);
95 }
96 __equalsCalc = obj;
97 boolean _equals;
98 _equals = true &&
99 ((this.value==null && other.getValue()==null) ||
100 (this.value!=null &&
101 this.value.equals(other.getValue()))) &&
102 ((this.lang==null && other.getLang()==null) ||
103 (this.lang!=null &&
104 this.lang.equals(other.getLang()))) &&
105 ((this.resourceName==null && other.getResourceName()==null) ||
106 (this.resourceName!=null &&
107 this.resourceName.equals(other.getResourceName())));
108 __equalsCalc = null;
109 return _equals;
110 }
111
112 private boolean __hashCodeCalc = false;
113 public synchronized int hashCode() {
114 if (__hashCodeCalc) {
115 return 0;
116 }
117 __hashCodeCalc = true;
118 int _hashCode = 1;
119 if (getValue() != null) {
120 _hashCode += getValue().hashCode();
121 }
122 if (getLang() != null) {
123 _hashCode += getLang().hashCode();
124 }
125 if (getResourceName() != null) {
126 _hashCode += getResourceName().hashCode();
127 }
128 __hashCodeCalc = false;
129 return _hashCode;
130 }
131
132 private static org.apache.axis.description.TypeDesc typeDesc =
134 new org.apache.axis.description.TypeDesc(LocalizedString.class, true);
135
136 static {
137 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "LocalizedString"));
138 org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
139 attrField.setFieldName("lang");
140 attrField.setXmlName(new javax.xml.namespace.QName("", "lang"));
141 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
142 typeDesc.addFieldDesc(attrField);
143 attrField = new org.apache.axis.description.AttributeDesc();
144 attrField.setFieldName("resourceName");
145 attrField.setXmlName(new javax.xml.namespace.QName("", "resourceName"));
146 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
147 typeDesc.addFieldDesc(attrField);
148 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
149 elemField.setFieldName("value");
150 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "value"));
151 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
152 typeDesc.addFieldDesc(elemField);
153 }
154
155
158 public static org.apache.axis.description.TypeDesc getTypeDesc() {
159 return typeDesc;
160 }
161
162
165 public static org.apache.axis.encoding.Serializer getSerializer(
166 java.lang.String mechType,
167 java.lang.Class _javaType,
168 javax.xml.namespace.QName _xmlType) {
169 return
170 new org.apache.axis.encoding.ser.BeanSerializer(
171 _javaType, _xmlType, typeDesc);
172 }
173
174
177 public static org.apache.axis.encoding.Deserializer getDeserializer(
178 java.lang.String mechType,
179 java.lang.Class _javaType,
180 javax.xml.namespace.QName _xmlType) {
181 return
182 new org.apache.axis.encoding.ser.BeanDeserializer(
183 _javaType, _xmlType, typeDesc);
184 }
185
186 }
187