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.
107 lines
2.2 KiB
107 lines
2.2 KiB
// AddressDataBean.java
|
|
// JavaBean that holds all the data for one address object.
|
|
|
|
package com.bullseyecomputing.beans;
|
|
|
|
public class AddressDataBean {
|
|
private int maxLength; // max string length for list variables
|
|
private String id; // a hash of the name + street fields
|
|
private String name;
|
|
private String listName; // a shortened version of name
|
|
private String street;
|
|
private String listStreet;
|
|
private String city;
|
|
private String state;
|
|
private String zip;
|
|
private String plus4;
|
|
private String listPhone; // phone needs to be a collection of phone objects
|
|
|
|
// maxLength accessor methods
|
|
public void setMaxLength(int len) {
|
|
maxLength = len;
|
|
}
|
|
public int getMaxLength() {
|
|
return maxLength;
|
|
}
|
|
|
|
// id accessor methods
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
// name accessor methods
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
// listName accessor methods
|
|
public void setListName(String name) {
|
|
listName = name;
|
|
}
|
|
public String getListName() {
|
|
return listName;
|
|
}
|
|
|
|
// street accessor methods
|
|
public void setStreet(String street) {
|
|
this.street = street;
|
|
}
|
|
public String getStreet() {
|
|
return street;
|
|
}
|
|
|
|
// listStreet accessor methods
|
|
public void setListStreet(String street) {
|
|
listStreet = street;
|
|
}
|
|
public String getListStreet() {
|
|
return listStreet;
|
|
}
|
|
|
|
// city accessor methods
|
|
public void setCity(String city) {
|
|
this.city = city;
|
|
}
|
|
public String getCity() {
|
|
return city;
|
|
}
|
|
|
|
// state accessor methods
|
|
public void setState(String state) {
|
|
this.state = state;
|
|
}
|
|
public String getState() {
|
|
return state;
|
|
}
|
|
|
|
// zipcode accessor methods
|
|
public void setZip(String zip) {
|
|
this.zip = zip;
|
|
}
|
|
public String getZip() {
|
|
return zip;
|
|
}
|
|
|
|
// zip plus4 accessor methods
|
|
public void setPlus4(String plus4) {
|
|
this.plus4 = plus4;
|
|
}
|
|
public String getPlus4() {
|
|
return plus4;
|
|
}
|
|
|
|
// listPhone accessor methods
|
|
public void setListPhone(String areacode, String number) {
|
|
listPhone = "(" + areacode + ")" + number;
|
|
}
|
|
public String getListPhone() {
|
|
return listPhone;
|
|
}
|
|
|
|
}
|