KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > typedesc > SimpleBean


1 package test.typedesc;
2
3 import org.apache.axis.description.AttributeDesc;
4 import org.apache.axis.description.FieldDesc;
5 import org.apache.axis.description.TypeDesc;
6 import org.apache.axis.encoding.SimpleType;
7
8 import javax.xml.namespace.QName JavaDoc;
9
10 public class SimpleBean implements java.io.Serializable JavaDoc {
11
12     public String JavaDoc a;
13     public String JavaDoc b;
14
15     private static TypeDesc typeDesc = new TypeDesc(SimpleBean.class);
16     static {
17         FieldDesc fd = new AttributeDesc();
18         fd.setFieldName("a");
19         fd.setXmlName(new QName JavaDoc("foo", "a"));
20         typeDesc.addFieldDesc(fd);
21
22     fd = new AttributeDesc();
23         fd.setFieldName("b");
24         fd.setXmlName(new QName JavaDoc("foo", "b"));
25         typeDesc.addFieldDesc(fd);
26     }
27     public static TypeDesc getTypeDesc() { return typeDesc; }
28
29     public SimpleBean() {}
30
31     public void setA(String JavaDoc value) {
32     }
33     
34     public String JavaDoc getA() {
35     return null;
36     }
37
38     public void setB(String JavaDoc value) {
39     }
40
41     public String JavaDoc getB() {
42     return null;
43     }
44 }
45
Popular Tags