1 2 package org.objectweb.jac.samples.contacts; 3 4 import java.net.URL ; 5 6 public class Company { 7 8 public Company(String name,String address, 9 String phone,String fax,URL webSiteURL) { 10 this.name = name; 11 this.address = address; 12 this.phone = phone; 13 this.fax = fax; 14 this.webSiteURL = webSiteURL; 15 } 16 17 public String toString() { 18 return name; 19 } 20 21 String name; 22 23 27 public String getName() { 28 return name; 29 } 30 31 35 public void setName(String v) { 36 this.name = v; 37 } 38 39 String address; 40 41 45 public String getAddress() { 46 return address; 47 } 48 49 53 public void setAddress(String v) { 54 this.address = v; 55 } 56 57 58 String phone; 59 60 64 public String getPhone() { 65 return phone; 66 } 67 68 72 public void setPhone(String v) { 73 this.phone = v; 74 } 75 76 77 URL webSiteURL; 78 79 83 public URL getWebSiteURL() { 84 return webSiteURL; 85 } 86 87 91 public void setWebSiteURL(URL v) { 92 this.webSiteURL = v; 93 } 94 95 96 String notes; 97 98 102 public String getNotes() { 103 return notes; 104 } 105 106 110 public void setNotes(String v) { 111 this.notes = v; 112 } 113 114 String fax; 115 116 120 public String getFax() { 121 return fax; 122 } 123 124 128 public void setFax(String v) { 129 this.fax = v; 130 } 131 132 133 } 134 135 | Popular Tags |