Debian Codegraph @

test/wsdl/roundtrip/BondInvestment.java

raw
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;
20 import java.math.BigInteger;
21 import java.util.Calendar;
22 import java.util.HashMap;
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 {
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 tradeExchange;
43 public BigInteger portfolioType;
44 public BigDecimal bondAmount;
45 public Calendar callableDate;
46 public byte[] byteArray;
47 private short[] shortArray;
48 private Boolean wrapperBoolean;
49 private Byte wrapperByte;
50 private Short wrapperShort;
51 public Integer wrapperInteger;
52 public Float wrapperFloat;
53 private Double wrapperDouble;
54 public Byte[] wrapperByteArray;
55 public Short[] wrapperShortArray;
56 private CallOptions[] options;
57 public Object options2;
58 public Object options3;
59 public int id;
60 public HashMap 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 tradeExchange) {
75 this.tradeExchange = tradeExchange;
76 } // setTradeExchange
77
78 public String 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 wrapperBoolean) {
91 this.wrapperBoolean = wrapperBoolean;
92 } // setWrapperBoolean
93
94 public Boolean getWrapperBoolean() {
95 return this.wrapperBoolean;
96 } // getWrapperBoolean
97
98 public void setWrapperByte(Byte wrapperByte) {
99 this.wrapperByte = wrapperByte;
100 } // setWrapperByte
101
102 public Byte getWrapperByte() {
103 return this.wrapperByte;
104 } // getWrapperByte
105
106 public void setWrapperShort(Short wrapperShort) {
107 this.wrapperShort = wrapperShort;
108 } // setWrapperShort
109
110 public Short getWrapperShort() {
111 return this.wrapperShort;
112 } // getWrapperShort
113
114 public void setWrapperDouble(Double wrapperDouble) {
115 this.wrapperDouble = wrapperDouble;
116 } // setWrapperDouble
117
118 public Double getWrapperDouble() {
119 return this.wrapperDouble;
120 } // getWrapperDouble
121
122 // List of fields that are XML attributes
123 private static java.lang.String[] _attrs = new String[] {
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[] 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 getMap() {
162 return map;
163 }
164
165 public void setMap(HashMap map) {
166 this.map = map;
167 }
168 } // BondInvestment