KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > encoding > RETURN


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package test.encoding;
18
19 public class RETURN implements java.io.Serializable JavaDoc {
20     private java.lang.String JavaDoc TYPE;
21     private java.lang.String JavaDoc ID;
22     private java.lang.String JavaDoc NUMBER;
23     private java.lang.String JavaDoc MESSAGE;
24     private java.lang.String JavaDoc LOGNO;
25     private java.lang.String JavaDoc LOGMSGNO;
26     private java.lang.String JavaDoc MESSAGEV1;
27     private java.lang.String JavaDoc MESSAGEV2;
28     private java.lang.String JavaDoc MESSAGEV3;
29     private java.lang.String JavaDoc MESSAGEV4;
30
31     public RETURN() {
32     }
33
34     public java.lang.String JavaDoc getTYPE() {
35         return TYPE;
36     }
37
38     public void setTYPE(java.lang.String JavaDoc TYPE) {
39         this.TYPE = TYPE;
40     }
41
42     public java.lang.String JavaDoc getID() {
43         return ID;
44     }
45
46     public void setID(java.lang.String JavaDoc ID) {
47         this.ID = ID;
48     }
49
50     public java.lang.String JavaDoc getNUMBER() {
51         return NUMBER;
52     }
53
54     public void setNUMBER(java.lang.String JavaDoc NUMBER) {
55         this.NUMBER = NUMBER;
56     }
57
58     public java.lang.String JavaDoc getMESSAGE() {
59         return MESSAGE;
60     }
61
62     public void setMESSAGE(java.lang.String JavaDoc MESSAGE) {
63         this.MESSAGE = MESSAGE;
64     }
65
66     public java.lang.String JavaDoc getLOGNO() {
67         return LOGNO;
68     }
69
70     public void setLOGNO(java.lang.String JavaDoc LOGNO) {
71         this.LOGNO = LOGNO;
72     }
73
74     public java.lang.String JavaDoc getLOGMSGNO() {
75         return LOGMSGNO;
76     }
77
78     public void setLOGMSGNO(java.lang.String JavaDoc LOGMSGNO) {
79         this.LOGMSGNO = LOGMSGNO;
80     }
81
82     public java.lang.String JavaDoc getMESSAGEV1() {
83         return MESSAGEV1;
84     }
85
86     public void setMESSAGEV1(java.lang.String JavaDoc MESSAGEV1) {
87         this.MESSAGEV1 = MESSAGEV1;
88     }
89
90     public java.lang.String JavaDoc getMESSAGEV2() {
91         return MESSAGEV2;
92     }
93
94     public void setMESSAGEV2(java.lang.String JavaDoc MESSAGEV2) {
95         this.MESSAGEV2 = MESSAGEV2;
96     }
97
98     public java.lang.String JavaDoc getMESSAGEV3() {
99         return MESSAGEV3;
100     }
101
102     public void setMESSAGEV3(java.lang.String JavaDoc MESSAGEV3) {
103         this.MESSAGEV3 = MESSAGEV3;
104     }
105
106     public java.lang.String JavaDoc getMESSAGEV4() {
107         return MESSAGEV4;
108     }
109
110     public void setMESSAGEV4(java.lang.String JavaDoc MESSAGEV4) {
111         this.MESSAGEV4 = MESSAGEV4;
112     }
113
114     // Type metadata
115
private static org.apache.axis.description.TypeDesc typeDesc =
116         new org.apache.axis.description.TypeDesc(RETURN.class);
117
118     static {
119         org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
120         field.setFieldName("LOGNO");
121         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "LOG_NO"));
122         typeDesc.addFieldDesc(field);
123         field = new org.apache.axis.description.ElementDesc();
124         field.setFieldName("MESSAGEV4");
125         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "MESSAGE_V4"));
126         typeDesc.addFieldDesc(field);
127         field = new org.apache.axis.description.ElementDesc();
128         field.setFieldName("MESSAGEV3");
129         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "MESSAGE_V3"));
130         typeDesc.addFieldDesc(field);
131         field = new org.apache.axis.description.ElementDesc();
132         field.setFieldName("MESSAGEV2");
133         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "MESSAGE_V2"));
134         typeDesc.addFieldDesc(field);
135         field = new org.apache.axis.description.ElementDesc();
136         field.setFieldName("MESSAGEV1");
137         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "MESSAGE_V1"));
138         typeDesc.addFieldDesc(field);
139         field = new org.apache.axis.description.ElementDesc();
140         field.setFieldName("LOGMSGNO");
141         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "LOG_MSG_NO"));
142         typeDesc.addFieldDesc(field);
143     };
144
145     /**
146      * Return type metadata object
147      */

148     public static org.apache.axis.description.TypeDesc getTypeDesc() {
149         return typeDesc;
150     }
151
152     public boolean equals(Object JavaDoc obj) {
153         // compare elements
154
RETURN other = (RETURN) obj;
155         if (obj == null) return false;
156         if (this == obj) return true;
157         if (! (obj instanceof RETURN)) return false;
158         return
159             ((TYPE==null && other.getTYPE()==null) ||
160              (TYPE!=null &&
161               TYPE.equals(other.getTYPE()))) &&
162             ((ID==null && other.getID()==null) ||
163              (ID!=null &&
164               ID.equals(other.getID()))) &&
165             ((NUMBER==null && other.getNUMBER()==null) ||
166              (NUMBER!=null &&
167               NUMBER.equals(other.getNUMBER()))) &&
168             ((MESSAGE==null && other.getMESSAGE()==null) ||
169              (MESSAGE!=null &&
170               MESSAGE.equals(other.getMESSAGE()))) &&
171             ((LOGNO==null && other.getLOGNO()==null) ||
172              (LOGNO!=null &&
173               LOGNO.equals(other.getLOGNO()))) &&
174             ((LOGMSGNO==null && other.getLOGMSGNO()==null) ||
175              (LOGMSGNO!=null &&
176               LOGMSGNO.equals(other.getLOGMSGNO()))) &&
177             ((MESSAGEV1==null && other.getMESSAGEV1()==null) ||
178              (MESSAGEV1!=null &&
179               MESSAGEV1.equals(other.getMESSAGEV1()))) &&
180             ((MESSAGEV2==null && other.getMESSAGEV2()==null) ||
181              (MESSAGEV2!=null &&
182               MESSAGEV2.equals(other.getMESSAGEV2()))) &&
183             ((MESSAGEV3==null && other.getMESSAGEV3()==null) ||
184              (MESSAGEV3!=null &&
185               MESSAGEV3.equals(other.getMESSAGEV3()))) &&
186             ((MESSAGEV4==null && other.getMESSAGEV4()==null) ||
187              (MESSAGEV4!=null &&
188               MESSAGEV4.equals(other.getMESSAGEV4())));
189     }
190 }
191
Popular Tags