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.

90 lines
1.8 KiB

  1. // ListDataBean.java
  2. // JavaBean that holds the data for one address that will be
  3. // part of a list of addresses generated by another bean.
  4. package com.bullseyecomputing.beans;
  5. public class ListDataBean {
  6. private int maxLength; // maximum string length for name and street
  7. private String id; // possibly a hash of the name + street fields
  8. private String name; // possibly a shortened version of the name
  9. private String street;
  10. private String city;
  11. private String state;
  12. private String zip;
  13. private String plus4;
  14. private String phone;
  15. // maxLength accessor methods
  16. public void setMaxLength(int len) {
  17. maxLength = len;
  18. }
  19. public int getMaxLength() {
  20. return maxLength;
  21. }
  22. // id accessor methods
  23. public void setId(String id) {
  24. this.id = id;
  25. }
  26. public String getId() {
  27. return id;
  28. }
  29. // name accessor methods
  30. public void setName(String name) {
  31. this.name = name;
  32. }
  33. public String getName() {
  34. return name;
  35. }
  36. // street accessor methods
  37. public void setStreet(String street) {
  38. this.street = street;
  39. }
  40. public String getStreet() {
  41. return street;
  42. }
  43. // city accessor methods
  44. public void setCity(String city) {
  45. this.city = city;
  46. }
  47. public String getCity() {
  48. return city;
  49. }
  50. // state accessor methods
  51. public void setState(String state) {
  52. this.state = state;
  53. }
  54. public String getState() {
  55. return state;
  56. }
  57. // zipcode accessor methods
  58. public void setZip(String zip) {
  59. this.zip = zip;
  60. }
  61. public String getZip() {
  62. return zip;
  63. }
  64. // zip plus4 accessor methods
  65. public void setPlus4(String plus4) {
  66. this.plus4 = plus4;
  67. }
  68. public String getPlus4() {
  69. return plus4;
  70. }
  71. // phone accessor methods
  72. public void setPhone(String phone) {
  73. this.phone = phone;
  74. }
  75. public String getPhone() {
  76. return phone;
  77. }
  78. }