1 37 38 package com.sun.j2ee.blueprints.opc.purchaseorder; 39 40 import java.io.*; 41 42 public class Address implements Serializable{ 43 44 private String streetName1; 45 private String streetName2; 46 private String city; 47 private String state; 48 private String postalCode; 49 private String country; 50 51 53 public Address() {} 54 55 public Address(String streetName1, String streetName2, String city, 56 String state, String postalCode, String country) { 57 this.streetName1 = streetName1; 58 this.streetName2 = streetName2; 59 this.city = city; 60 this.state = state; 61 this.postalCode = postalCode; 62 this.country = country; 63 return; 64 } 65 66 68 public String getStreetName1() { 69 return streetName1; 70 } 71 72 public String getStreetName2() { 73 return streetName2; 74 } 75 76 public String getCity() { 77 return city; 78 } 79 80 public String getState() { 81 return state; 82 } 83 84 public String getCountry() { 85 return country; 86 } 87 88 public String getPostalCode() { 89 return postalCode; 90 } 91 92 94 public void setStreetName1(String streetName) { 95 this.streetName1 = streetName; 96 return; 97 } 98 99 public void setStreetName2(String streetName) { 100 this.streetName2 = streetName; 101 return; 102 } 103 104 public void setCity(String city) { 105 this.city = city; 106 return; 107 } 108 109 public void setState(String state) { 110 this.state = state; 111 return; 112 } 113 114 public void setCountry(String country) { 115 this.country = country; 116 return; 117 } 118 119 public void setPostalCode(String postalCode) { 120 this.postalCode = postalCode; 121 return; 122 } 123 124 } 125 126 127 | Popular Tags |