1 package org.objectweb.jonas.jtests.servlets.portlink; 2 3 public class Address { 4 5 private String name; 6 private String company; 7 private float version; 8 9 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() 38 + "', company='" + getCompany() 39 + "', version='" + getVersion() + "'}"; 40 } 41 } 42 | Popular Tags |