Debian Codegraph @

test/typedesc/ComplexBean.java

raw
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;
24
25 public class ComplexBean extends SimpleBean implements java.io.Serializable {
26
27 public String c;
28 public String d;
29 public String e;
30 public String f;
31
32 private static TypeDesc typeDesc = new TypeDesc(ComplexBean.class);
33 static {
34 FieldDesc fd = new AttributeDesc();
35 fd.setFieldName("c");
36 fd.setXmlName(new QName("foo", "c"));
37 typeDesc.addFieldDesc(fd);
38
39 fd = new AttributeDesc();
40 fd.setFieldName("d");
41 fd.setXmlName(new QName("foo", "d"));
42 typeDesc.addFieldDesc(fd);
43
44 fd = new AttributeDesc();
45 fd.setFieldName("e");
46 ((AttributeDesc)fd).setAttributeName("ffffff");
47 fd.setXmlName(new QName("foo", "e"));
48 typeDesc.addFieldDesc(fd);
49
50 fd = new AttributeDesc();
51 fd.setFieldName("f");
52 fd.setXmlName(new QName("foo", "f"));
53 typeDesc.addFieldDesc(fd);
54 }
55 public static TypeDesc getTypeDesc() { return typeDesc; }
56
57 public ComplexBean() {}
58
59 public void setC(String value) {
60 }
61
62 public String getC() {
63 return null;
64 }
65
66 public void setD(String value) {
67 }
68
69 public String getD() {
70 return null;
71 }
72
73 public void setE(String value) {
74 }
75
76 public String getE() {
77 return null;
78 }
79
80 public void setF(String value) {
81 }
82
83 public String getF() {
84 return null;
85 }
86 }