1 37 38 package com.sun.j2ee.blueprints.opc.purchaseorder; 39 40 import java.io.*; 41 42 public class ContactInfo implements Serializable{ 43 44 private String familyName; 45 private String givenName; 46 private Address address; 47 private String email; 48 private String phone; 49 50 public ContactInfo() {} 51 52 public ContactInfo(String familyName, String givenName, Address address, 53 String email, String phone) { 54 this.familyName = familyName; 55 this.givenName = givenName; 56 this.address = address; 57 this.email = email; 58 this.phone = phone; 59 return; 60 } 61 62 64 public String getFamilyName() { 65 return familyName; 66 } 67 68 public String getGivenName() { 69 return givenName; 70 } 71 72 public Address getAddress() { 73 return address; 74 } 75 76 public String getEmail() { 77 return email; 78 } 79 80 public String getPhone() { 81 return phone; 82 } 83 84 86 public void setFamilyName(String familyName) { 87 this.familyName = familyName; 88 return; 89 } 90 91 public void setGivenName(String givenName) { 92 this.givenName = givenName; 93 return; 94 } 95 96 public void setAddress(Address address) { 97 this.address = address; 98 return; 99 } 100 101 public void setEmail(String email) { 102 this.email = email; 103 return; 104 } 105 106 public void setPhone(String phone) { 107 this.phone = phone; 108 return; 109 } 110 111 } 112 113 | Popular Tags |