View Javadoc

1   /***
2    * Attribute.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6    */
7   
8   package no.feide.moria.webservices.v2_2;
9   
10  public class Attribute  implements java.io.Serializable {
11      private java.lang.String name;
12      private java.lang.String separator;
13      private java.lang.String values;
14  
15      public Attribute() {
16      }
17  
18      public Attribute(
19             java.lang.String name,
20             java.lang.String separator,
21             java.lang.String values) {
22             this.name = name;
23             this.separator = separator;
24             this.values = values;
25      }
26  
27  
28      /***
29       * Gets the name value for this Attribute.
30       * 
31       * @return name
32       */
33      public java.lang.String getName() {
34          return name;
35      }
36  
37  
38      /***
39       * Sets the name value for this Attribute.
40       * 
41       * @param name
42       */
43      public void setName(java.lang.String name) {
44          this.name = name;
45      }
46  
47  
48      /***
49       * Gets the separator value for this Attribute.
50       * 
51       * @return separator
52       */
53      public java.lang.String getSeparator() {
54          return separator;
55      }
56  
57  
58      /***
59       * Sets the separator value for this Attribute.
60       * 
61       * @param separator
62       */
63      public void setSeparator(java.lang.String separator) {
64          this.separator = separator;
65      }
66  
67  
68      /***
69       * Gets the values value for this Attribute.
70       * 
71       * @return values
72       */
73      public java.lang.String getValues() {
74          return values;
75      }
76  
77  
78      /***
79       * Sets the values value for this Attribute.
80       * 
81       * @param values
82       */
83      public void setValues(java.lang.String values) {
84          this.values = values;
85      }
86  
87      private java.lang.Object __equalsCalc = null;
88      public synchronized boolean equals(java.lang.Object obj) {
89          if (!(obj instanceof Attribute)) return false;
90          Attribute other = (Attribute) 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.name==null && other.getName()==null) || 
100              (this.name!=null &&
101               this.name.equals(other.getName()))) &&
102             ((this.separator==null && other.getSeparator()==null) || 
103              (this.separator!=null &&
104               this.separator.equals(other.getSeparator()))) &&
105             ((this.values==null && other.getValues()==null) || 
106              (this.values!=null &&
107               this.values.equals(other.getValues())));
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 (getName() != null) {
120             _hashCode += getName().hashCode();
121         }
122         if (getSeparator() != null) {
123             _hashCode += getSeparator().hashCode();
124         }
125         if (getValues() != null) {
126             _hashCode += getValues().hashCode();
127         }
128         __hashCodeCalc = false;
129         return _hashCode;
130     }
131 
132     // Type metadata
133     private static org.apache.axis.description.TypeDesc typeDesc =
134         new org.apache.axis.description.TypeDesc(Attribute.class, true);
135 
136     static {
137         typeDesc.setXmlType(new javax.xml.namespace.QName("http://v2_2.webservices.moria.feide.no", "Attribute"));
138         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
139         elemField.setFieldName("name");
140         elemField.setXmlName(new javax.xml.namespace.QName("http://v2_2.webservices.moria.feide.no", "name"));
141         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
142         typeDesc.addFieldDesc(elemField);
143         elemField = new org.apache.axis.description.ElementDesc();
144         elemField.setFieldName("separator");
145         elemField.setXmlName(new javax.xml.namespace.QName("http://v2_2.webservices.moria.feide.no", "separator"));
146         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
147         typeDesc.addFieldDesc(elemField);
148         elemField = new org.apache.axis.description.ElementDesc();
149         elemField.setFieldName("values");
150         elemField.setXmlName(new javax.xml.namespace.QName("http://v2_2.webservices.moria.feide.no", "values"));
151         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
152         typeDesc.addFieldDesc(elemField);
153     }
154 
155     /***
156      * Return type metadata object
157      */
158     public static org.apache.axis.description.TypeDesc getTypeDesc() {
159         return typeDesc;
160     }
161 
162     /***
163      * Get Custom Serializer
164      */
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     /***
175      * Get Custom Deserializer
176      */
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 }