01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.harmony.beans.tests.support;
19:
20: import java.io.Serializable;
21:
22: public class SerializableBean implements Serializable {
23:
24: private static final long serialVersionUID = -753653007843975743L;
25:
26: private int value;
27:
28: private String text = null;
29:
30: private Integer iValue = null;
31:
32: private int[] intArray;
33:
34: private String[] strArray;
35:
36: public SerializableBean() {
37: }
38:
39: public SerializableBean(String text) {
40: this .text = text;
41: }
42:
43: public String getText() {
44: return this .text;
45: }
46:
47: public Integer getIValue() {
48: return iValue;
49: }
50:
51: public void setIValue(Integer iValue) {
52: this .iValue = iValue;
53: }
54:
55: public int getValue() {
56: return value;
57: }
58:
59: public void setValue(int value) {
60: this .value = value;
61: }
62:
63: public int[] getIntArray() {
64: return intArray;
65: }
66:
67: public void setIntArray(int[] intArray) {
68: this .intArray = intArray;
69: }
70:
71: public String[] getStrArray() {
72: return strArray;
73: }
74:
75: public void setStrArray(String[] strArray) {
76: this.strArray = strArray;
77: }
78: }
|