1   /**
2    * Property.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
6    */
7   
8   package oasis.names.tc.wsrp.v1.types;
9   
10  public class Property  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
11      private java.lang.String stringValue;
12      private org.apache.axis.message.MessageElement [] _any;
13      private java.lang.String name;  // attribute
14      private java.lang.String lang;  // attribute
15  
16      public Property() {
17      }
18  
19      public Property(
20             org.apache.axis.message.MessageElement [] _any,
21             java.lang.String lang,
22             java.lang.String name,
23             java.lang.String stringValue) {
24             this.stringValue = stringValue;
25             this._any = _any;
26             this.name = name;
27             this.lang = lang;
28      }
29  
30  
31      /**
32       * Gets the stringValue value for this Property.
33       * 
34       * @return stringValue
35       */
36      public java.lang.String getStringValue() {
37          return stringValue;
38      }
39  
40  
41      /**
42       * Sets the stringValue value for this Property.
43       * 
44       * @param stringValue
45       */
46      public void setStringValue(java.lang.String stringValue) {
47          this.stringValue = stringValue;
48      }
49  
50  
51      /**
52       * Gets the _any value for this Property.
53       * 
54       * @return _any
55       */
56      public org.apache.axis.message.MessageElement [] get_any() {
57          return _any;
58      }
59  
60  
61      /**
62       * Sets the _any value for this Property.
63       * 
64       * @param _any
65       */
66      public void set_any(org.apache.axis.message.MessageElement [] _any) {
67          this._any = _any;
68      }
69  
70  
71      /**
72       * Gets the name value for this Property.
73       * 
74       * @return name
75       */
76      public java.lang.String getName() {
77          return name;
78      }
79  
80  
81      /**
82       * Sets the name value for this Property.
83       * 
84       * @param name
85       */
86      public void setName(java.lang.String name) {
87          this.name = name;
88      }
89  
90  
91      /**
92       * Gets the lang value for this Property.
93       * 
94       * @return lang
95       */
96      public java.lang.String getLang() {
97          return lang;
98      }
99  
100 
101     /**
102      * Sets the lang value for this Property.
103      * 
104      * @param lang
105      */
106     public void setLang(java.lang.String lang) {
107         this.lang = lang;
108     }
109 
110     private java.lang.Object __equalsCalc = null;
111     public synchronized boolean equals(java.lang.Object obj) {
112         if (!(obj instanceof Property)) return false;
113         Property other = (Property) obj;
114         if (obj == null) return false;
115         if (this == obj) return true;
116         if (__equalsCalc != null) {
117             return (__equalsCalc == obj);
118         }
119         __equalsCalc = obj;
120         boolean _equals;
121         _equals = true && 
122             ((this.stringValue==null && other.getStringValue()==null) || 
123              (this.stringValue!=null &&
124               this.stringValue.equals(other.getStringValue()))) &&
125             ((this._any==null && other.get_any()==null) || 
126              (this._any!=null &&
127               java.util.Arrays.equals(this._any, other.get_any()))) &&
128             ((this.name==null && other.getName()==null) || 
129              (this.name!=null &&
130               this.name.equals(other.getName()))) &&
131             ((this.lang==null && other.getLang()==null) || 
132              (this.lang!=null &&
133               this.lang.equals(other.getLang())));
134         __equalsCalc = null;
135         return _equals;
136     }
137 
138     private boolean __hashCodeCalc = false;
139     public synchronized int hashCode() {
140         if (__hashCodeCalc) {
141             return 0;
142         }
143         __hashCodeCalc = true;
144         int _hashCode = 1;
145         if (getStringValue() != null) {
146             _hashCode += getStringValue().hashCode();
147         }
148         if (get_any() != null) {
149             for (int i=0;
150                  i<java.lang.reflect.Array.getLength(get_any());
151                  i++) {
152                 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
153                 if (obj != null &&
154                     !obj.getClass().isArray()) {
155                     _hashCode += obj.hashCode();
156                 }
157             }
158         }
159         if (getName() != null) {
160             _hashCode += getName().hashCode();
161         }
162         if (getLang() != null) {
163             _hashCode += getLang().hashCode();
164         }
165         __hashCodeCalc = false;
166         return _hashCode;
167     }
168 
169     // Type metadata
170     private static org.apache.axis.description.TypeDesc typeDesc =
171         new org.apache.axis.description.TypeDesc(Property.class, true);
172 
173     static {
174         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Property"));
175         org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
176         attrField.setFieldName("name");
177         attrField.setXmlName(new javax.xml.namespace.QName("", "name"));
178         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
179         typeDesc.addFieldDesc(attrField);
180         attrField = new org.apache.axis.description.AttributeDesc();
181         attrField.setFieldName("lang");
182         attrField.setXmlName(new javax.xml.namespace.QName("", "lang"));
183         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
184         typeDesc.addFieldDesc(attrField);
185         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
186         elemField.setFieldName("stringValue");
187         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "stringValue"));
188         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
189         elemField.setMinOccurs(0);
190         typeDesc.addFieldDesc(elemField);
191     }
192 
193     /**
194      * Return type metadata object
195      */
196     public static org.apache.axis.description.TypeDesc getTypeDesc() {
197         return typeDesc;
198     }
199 
200     /**
201      * Get Custom Serializer
202      */
203     public static org.apache.axis.encoding.Serializer getSerializer(
204            java.lang.String mechType, 
205            java.lang.Class _javaType,  
206            javax.xml.namespace.QName _xmlType) {
207         return 
208           new  org.apache.axis.encoding.ser.BeanSerializer(
209             _javaType, _xmlType, typeDesc);
210     }
211 
212     /**
213      * Get Custom Deserializer
214      */
215     public static org.apache.axis.encoding.Deserializer getDeserializer(
216            java.lang.String mechType, 
217            java.lang.Class _javaType,  
218            javax.xml.namespace.QName _xmlType) {
219         return 
220           new  org.apache.axis.encoding.ser.BeanDeserializer(
221             _javaType, _xmlType, typeDesc);
222     }
223 
224 }
225