01: /**
02: * Copyright (C) 2001-2004 France Telecom R&D
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */package org.objectweb.speedo.pobjects.userid;
18:
19: /**
20: *
21: * @author S.Chassande-Barrioz
22: */
23: public class BasicB {
24: public String id1;
25: public long id2;
26:
27: public String f1 = null;
28: public int f2 = 0;
29:
30: private BasicB(String f1, int f2, boolean b) {
31: this .f1 = f1;
32: this .f2 = f2;
33: }
34:
35: public BasicB(String id1, int id2) {
36: this .id1 = id1;
37: this .id2 = id2;
38: }
39:
40: public BasicB(String id1, int id2, String f1, int f2) {
41: this (id1, id2);
42: this .f1 = f1;
43: this .f2 = f2;
44: }
45:
46: protected BasicB(String f1) {
47: this .f1 = f1;
48: }
49:
50: public BasicB() {
51: }
52:
53: public String getId1() {
54: return id1;
55: }
56:
57: public long getId2() {
58: return id2;
59: }
60:
61: public String readF1() {
62: return f1;
63: }
64:
65: public void writeF1(String f1) {
66: this .f1 = f1;
67: }
68:
69: public int readF2() {
70: return f2;
71: }
72:
73: public void writeF2(int f2) {
74: this .f2 = f2;
75: }
76:
77: public String readF1_F2() {
78: return f1 + f2;
79: }
80:
81: public void writeF1() {
82: f1 = "azerty";
83: }
84:
85: public void writeF2() {
86: f2 = 1;
87: }
88:
89: public void writeF1_F2() {
90: f1 = "qsdfgh";
91: f2 = 2;
92: }
93:
94: public void delegateWriteF1() {
95: writeF1();
96: }
97: }
|