JSP Addressbook app for VIP Express (circa Jun 2002)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

117 lines
2.0 KiB

  1. // AddressDataBean.java
  2. // JavaBean for storing and manipulating an address entry.
  3. package com.bullseyecomputing.beans;
  4. public class AddressDataBean {
  5. private String idNumber;
  6. private String name;
  7. private String street;
  8. private String suite;
  9. private String city;
  10. private String state;
  11. private String zipcode;
  12. private String plus4;
  13. private Phone phone;
  14. private Phone fax;
  15. private String note;
  16. // idNumber accessor methods
  17. public void setIdNumber(String id) {
  18. idNumber = id;
  19. }
  20. public String getIdNumber() {
  21. return idNumber;
  22. }
  23. // name accessor methods
  24. public void setName(String name) {
  25. this.name = name;
  26. }
  27. public String getName() {
  28. return name;
  29. }
  30. // street accessor methods
  31. public void setStreet(String street) {
  32. this.street = street;
  33. }
  34. public String getStreet() {
  35. return street;
  36. }
  37. // suite accessor methods
  38. public void setSuite(String suite) {
  39. this.suite = suite;
  40. }
  41. public String getSuite() {
  42. return suite;
  43. }
  44. // city accessor methods
  45. public void setCity(String city) {
  46. this.city = city;
  47. }
  48. public String getCity() {
  49. return city;
  50. }
  51. // state accessor methods
  52. public void setState(String state) {
  53. this.state = state;
  54. }
  55. public String getState() {
  56. return state;
  57. }
  58. // zipcode accessor methods
  59. public void setZipcode(String zip) {
  60. zipcode = zip;
  61. }
  62. public String getZipcode() {
  63. return zipcode;
  64. }
  65. // plus4 accessor methods
  66. public void setPlus4(String plus4) {
  67. this.plus4 = plus4;
  68. }
  69. public String getPlus4() {
  70. return plus4;
  71. }
  72. // Inner class for phone data
  73. class Phone {
  74. String type;
  75. String areacode;
  76. String number;
  77. String comment;
  78. }
  79. // areacode accessor methods
  80. public void setAreacode(String areacode) {
  81. this.areacode = areacode;
  82. }
  83. public String getAreacode() {
  84. return areacode;
  85. }
  86. // phone accessor methods
  87. public void setPhone(String phone) {
  88. this.phone = phone;
  89. }
  90. public String getPhone() {
  91. return phone;
  92. }
  93. }