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.

107 lines
2.2 KiB

  1. // AddressDataBean.java
  2. // JavaBean that holds all the data for one address object.
  3. package com.bullseyecomputing.beans;
  4. public class AddressDataBean {
  5. private int maxLength; // max string length for list variables
  6. private String id; // a hash of the name + street fields
  7. private String name;
  8. private String listName; // a shortened version of name
  9. private String street;
  10. private String listStreet;
  11. private String city;
  12. private String state;
  13. private String zip;
  14. private String plus4;
  15. private String listPhone; // phone needs to be a collection of phone objects
  16. // maxLength accessor methods
  17. public void setMaxLength(int len) {
  18. maxLength = len;
  19. }
  20. public int getMaxLength() {
  21. return maxLength;
  22. }
  23. // id accessor methods
  24. public void setId(String id) {
  25. this.id = id;
  26. }
  27. public String getId() {
  28. return id;
  29. }
  30. // name accessor methods
  31. public void setName(String name) {
  32. this.name = name;
  33. }
  34. public String getName() {
  35. return name;
  36. }
  37. // listName accessor methods
  38. public void setListName(String name) {
  39. listName = name;
  40. }
  41. public String getListName() {
  42. return listName;
  43. }
  44. // street accessor methods
  45. public void setStreet(String street) {
  46. this.street = street;
  47. }
  48. public String getStreet() {
  49. return street;
  50. }
  51. // listStreet accessor methods
  52. public void setListStreet(String street) {
  53. listStreet = street;
  54. }
  55. public String getListStreet() {
  56. return listStreet;
  57. }
  58. // city accessor methods
  59. public void setCity(String city) {
  60. this.city = city;
  61. }
  62. public String getCity() {
  63. return city;
  64. }
  65. // state accessor methods
  66. public void setState(String state) {
  67. this.state = state;
  68. }
  69. public String getState() {
  70. return state;
  71. }
  72. // zipcode accessor methods
  73. public void setZip(String zip) {
  74. this.zip = zip;
  75. }
  76. public String getZip() {
  77. return zip;
  78. }
  79. // zip plus4 accessor methods
  80. public void setPlus4(String plus4) {
  81. this.plus4 = plus4;
  82. }
  83. public String getPlus4() {
  84. return plus4;
  85. }
  86. // listPhone accessor methods
  87. public void setListPhone(String areacode, String number) {
  88. listPhone = "(" + areacode + ")" + number;
  89. }
  90. public String getListPhone() {
  91. return listPhone;
  92. }
  93. }