KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > encoding > DerivatedBean


1 /*
2  * Copyright 2002-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 /**
20  * A type used for testing serialization of inherited elements
21  */

22 public class DerivatedBean extends SuperBean {
23
24     private String JavaDoc three;
25     
26     private String JavaDoc four;
27
28     /**
29      * Returns the four.
30      * @return String
31      */

32     public String JavaDoc getFour() {
33         return four;
34     }
35
36     /**
37      * Returns the three.
38      * @return String
39      */

40     public String JavaDoc getThree() {
41         return three;
42     }
43
44     /**
45      * Sets the four.
46      * @param four The four to set
47      */

48     public void setFour(String JavaDoc four) {
49         this.four = four;
50     }
51
52     /**
53      * Sets the three.
54      * @param three The three to set
55      */

56     public void setThree(String JavaDoc three) {
57         this.three = three;
58     }
59
60     // Type metadata
61
private static org.apache.axis.description.TypeDesc typeDesc =
62         new org.apache.axis.description.TypeDesc(DerivatedBean.class);
63
64     static {
65         org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
66         field.setFieldName("three");
67         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "three"));
68         field.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
69         typeDesc.addFieldDesc(field);
70         field = new org.apache.axis.description.ElementDesc();
71         field.setFieldName("four");
72         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "four"));
73         field.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
74         typeDesc.addFieldDesc(field);
75     };
76
77     /**
78      * Return type metadata object
79      */

80     public static org.apache.axis.description.TypeDesc getTypeDesc() {
81         return typeDesc;
82     }
83
84
85 }
86
Popular Tags