KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > typedesc > ComplexBean2


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 package test.typedesc;
17
18 import org.apache.axis.description.AttributeDesc;
19 import org.apache.axis.description.FieldDesc;
20 import org.apache.axis.description.TypeDesc;
21 import org.apache.axis.encoding.SimpleType;
22
23 import javax.xml.namespace.QName JavaDoc;
24
25 public class ComplexBean2 extends SimpleBean2 implements java.io.Serializable JavaDoc {
26
27     public String JavaDoc c;
28     public String JavaDoc d;
29     public String JavaDoc e;
30
31     private static TypeDesc typeDesc = new TypeDesc(ComplexBean2.class);
32     static {
33         FieldDesc fd = new AttributeDesc();
34         fd.setFieldName("c");
35         fd.setXmlName(new QName JavaDoc("foo", "c"));
36         typeDesc.addFieldDesc(fd);
37
38         fd = new AttributeDesc();
39         fd.setFieldName("d");
40         fd.setXmlName(new QName JavaDoc("foo", "d"));
41         typeDesc.addFieldDesc(fd);
42
43         fd = new AttributeDesc();
44         fd.setFieldName("e");
45         ((AttributeDesc)fd).setAttributeName("ffffff");
46         fd.setXmlName(new QName JavaDoc("foo", "e"));
47         typeDesc.addFieldDesc(fd);
48     }
49     public static TypeDesc getTypeDesc() { return typeDesc; }
50
51     public ComplexBean2() {}
52
53     public void setC(String JavaDoc value) {
54     }
55
56     public String JavaDoc getC() {
57         return null;
58     }
59
60     public void setD(String JavaDoc value) {
61     }
62
63     public String JavaDoc getD() {
64         return null;
65     }
66
67     public void setE(String JavaDoc value) {
68     }
69
70     public String JavaDoc getE() {
71         return null;
72     }
73
74 }
75
Popular Tags