01: package org.objectweb.jonas.jtests.servlets.endpoint;
02:
03: public class Address {
04:
05: private String name;
06: private String company;
07: private float version;
08:
09: public Address() {
10: }
11:
12: public void setName(String name) {
13: this .name = name;
14: }
15:
16: public void setCompany(String company) {
17: this .company = company;
18: }
19:
20: public void setVersion(float version) {
21: this .version = version;
22: }
23:
24: public String getName() {
25: return name;
26: }
27:
28: public String getCompany() {
29: return company;
30: }
31:
32: public float getVersion() {
33: return version;
34: }
35:
36: public String toString() {
37: return "Address {name='" + getName() + "', company='"
38: + getCompany() + "', version='" + getVersion() + "'}";
39: }
40: }
|