01: package org.drools;
02:
03: public class Address {
04:
05: private String street;
06: private String number;
07: private String phone;
08:
09: public Address() {
10: }
11:
12: public Address(String street, String number, String phone) {
13: this .street = street;
14: this .number = number;
15: this .phone = phone;
16: }
17:
18: public String getNumber() {
19: return number;
20: }
21:
22: public void setNumber(String number) {
23: this .number = number;
24: }
25:
26: public String getPhone() {
27: return phone;
28: }
29:
30: public void setPhone(String phone) {
31: this .phone = phone;
32: }
33:
34: public String getStreet() {
35: return street;
36: }
37:
38: public void setStreet(String street) {
39: this .street = street;
40: }
41:
42: public String toString() {
43: return "Address( " + this .street + ", " + this .number
44: + " - phone: " + this .phone + " )";
45: }
46:
47: }
|