Debian Codegraph @

test/encoding/SuperBean.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
17 package test.encoding;
18
19 import org.apache.axis.description.ElementDesc;
20
21 /**
22 * A simple type with several elements for testing serialization
23 */
24 public class SuperBean {
25
26 // Definition of three elements
27 private String zero;
28 private String one;
29 private String two;
30
31 /**
32 * Returns the one.
33 * @return String
34 */
35 public String getOne() {
36 return one;
37 }
38
39 /**
40 * Returns the two.
41 * @return String
42 */
43 public String getTwo() {
44 return two;
45 }
46
47 /**
48 * Returns the zero.
49 * @return String
50 */
51 public String getZero() {
52 return zero;
53 }
54
55 /**
56 * Sets the one.
57 * @param one The one to set
58 */
59 public void setOne(String one) {
60 this.one = one;
61 }
62
63 /**
64 * Sets the two.
65 * @param two The two to set
66 */
67 public void setTwo(String two) {
68 this.two = two;
69 }
70
71 /**
72 * Sets the zero.
73 * @param zero The zero to set
74 */
75 public void setZero(String zero) {
76 this.zero = zero;
77 }
78
79 // Type metadata
80 private static org.apache.axis.description.TypeDesc typeDesc =
81 new org.apache.axis.description.TypeDesc(SuperBean.class);
82
83 static {
84 org.apache.axis.description.ElementDesc field = new org.apache.axis.description.ElementDesc();
85 field.setFieldName("zero");
86 field.setXmlName(new javax.xml.namespace.QName("", "zero"));
87 field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
88 field.setNillable(true);
89 typeDesc.addFieldDesc(field);
90 field = new org.apache.axis.description.ElementDesc();
91 field.setFieldName("one");
92 field.setXmlName(new javax.xml.namespace.QName("", "one"));
93 field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
94 field.setNillable(true);
95 typeDesc.addFieldDesc(field);
96 field = new org.apache.axis.description.ElementDesc();
97 field.setFieldName("two");
98 field.setXmlName(new javax.xml.namespace.QName("", "two"));
99 field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
100 field.setNillable(true);
101 typeDesc.addFieldDesc(field);
102 };
103
104 /**
105 * Return type metadata object
106 */
107 public static org.apache.axis.description.TypeDesc getTypeDesc() {
108 return typeDesc;
109 }
110 }