KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > roundtrip > BondInvestment


1 /*
2  * Copyright 2001-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.wsdl.roundtrip;
18
19 import java.math.BigDecimal JavaDoc;
20 import java.math.BigInteger JavaDoc;
21 import java.util.Calendar JavaDoc;
22 import java.util.HashMap JavaDoc;
23
24 /**
25  * The BondInvestment class contains data members for all the
26  * primitives, standard Java classes, and primitive wrapper
27  * classes. This class is used to test that all the data
28  * members transmit correctly over the wire.
29  *
30  * @version 1.00 06 Feb 2002
31  * @author Brent Ulbricht
32  */

33 public class BondInvestment implements java.io.Serializable JavaDoc {
34
35     private boolean taxableInvestment;
36     public byte taxIndicator;
37     public short docType;
38     public int stockBeta;
39     public long yield;
40     public float lastTradePrice;
41     public double fiftyTwoWeekHigh;
42     private String JavaDoc tradeExchange;
43     public BigInteger JavaDoc portfolioType;
44     public BigDecimal JavaDoc bondAmount;
45     public Calendar JavaDoc callableDate;
46     public byte[] byteArray;
47     private short[] shortArray;
48     private Boolean JavaDoc wrapperBoolean;
49     private Byte JavaDoc wrapperByte;
50     private Short JavaDoc wrapperShort;
51     public Integer JavaDoc wrapperInteger;
52     public Float JavaDoc wrapperFloat;
53     private Double JavaDoc wrapperDouble;
54     public Byte JavaDoc[] wrapperByteArray;
55     public Short JavaDoc[] wrapperShortArray;
56     private CallOptions[] options;
57     public Object JavaDoc options2;
58     public Object JavaDoc options3;
59     public int id;
60     public HashMap JavaDoc map;
61
62     public BondInvestment() {
63
64     } // Constructor
65

66     public void setTaxableInvestment(boolean taxableInvestment) {
67         this.taxableInvestment = taxableInvestment;
68     } // setTaxableInvestment
69

70     public boolean getTaxableInvestment() {
71         return this.taxableInvestment;
72     } // getTaxableInvestment
73

74     public void setTradeExchange(String JavaDoc tradeExchange) {
75         this.tradeExchange = tradeExchange;
76     } // setTradeExchange
77

78     public String JavaDoc getTradeExchange() {
79         return this.tradeExchange;
80     } // getTradeExchange
81

82     public void setShortArray(short[] shortArray) {
83         this.shortArray = shortArray;
84     } // getShortArray
85

86     public short[] getShortArray() {
87         return this.shortArray;
88     } // setShortArray
89

90     public void setWrapperBoolean(Boolean JavaDoc wrapperBoolean) {
91         this.wrapperBoolean = wrapperBoolean;
92     } // setWrapperBoolean
93

94     public Boolean JavaDoc getWrapperBoolean() {
95         return this.wrapperBoolean;
96     } // getWrapperBoolean
97

98     public void setWrapperByte(Byte JavaDoc wrapperByte) {
99         this.wrapperByte = wrapperByte;
100     } // setWrapperByte
101

102     public Byte JavaDoc getWrapperByte() {
103         return this.wrapperByte;
104     } // getWrapperByte
105

106     public void setWrapperShort(Short JavaDoc wrapperShort) {
107         this.wrapperShort = wrapperShort;
108     } // setWrapperShort
109

110     public Short JavaDoc getWrapperShort() {
111         return this.wrapperShort;
112     } // getWrapperShort
113

114     public void setWrapperDouble(Double JavaDoc wrapperDouble) {
115         this.wrapperDouble = wrapperDouble;
116     } // setWrapperDouble
117

118     public Double JavaDoc getWrapperDouble() {
119         return this.wrapperDouble;
120     } // getWrapperDouble
121

122     // List of fields that are XML attributes
123
private static java.lang.String JavaDoc[] _attrs = new String JavaDoc[] {
124         "taxIndicator",
125         "docType",
126         "stockBeta"
127     };
128
129     /**
130      * Return list of bean field names that are attributes
131      */

132     public static java.lang.String JavaDoc[] getAttributeElements() {
133         return _attrs;
134     }
135  
136     public CallOptions getOptions(int i) {
137         return options[i];
138     }
139
140     public void setOptions(int i, CallOptions value) {
141         if (options == null ||
142             options.length <= i) {
143             CallOptions[] a = new CallOptions[i + 1];
144             if (options != null) {
145                 for(int j=0; j<options.length; j++)
146                     a[j] = options[j];
147             }
148             options = a;
149         }
150         options[i] = value;
151     }
152
153     public CallOptions[] getOptions() {
154         return options;
155     }
156
157     public void setOptions(CallOptions[] options) {
158         this.options = options;
159     }
160
161     public HashMap JavaDoc getMap() {
162         return map;
163     }
164
165     public void setMap(HashMap JavaDoc map) {
166         this.map = map;
167     }
168 } // BondInvestment
169
Popular Tags