KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > servlets > portlink > Address


1 package org.objectweb.jonas.jtests.servlets.portlink;
2
3 public class Address {
4
5     private String JavaDoc name;
6     private String JavaDoc company;
7     private float version;
8
9     public Address() {
10     }
11
12     public void setName(String JavaDoc name) {
13         this.name = name;
14     }
15
16     public void setCompany(String JavaDoc company) {
17         this.company = company;
18     }
19
20     public void setVersion(float version) {
21         this.version = version;
22     }
23
24     public String JavaDoc getName() {
25         return name;
26     }
27
28     public String JavaDoc getCompany() {
29         return company;
30     }
31
32     public float getVersion() {
33         return version;
34     }
35
36     public String JavaDoc toString() {
37         return "Address {name='" + getName()
38             + "', company='" + getCompany()
39             + "', version='" + getVersion() + "'}";
40     }
41 }
42
Popular Tags