Methods Summary |
---|
private static java.lang.String | cleanup(java.lang.String str)Cleanup the String parameter by replacing null with an
empty String, and by trimming whitespace from non-null Strings.
return (str != null) ? str.trim() : "";
|
public java.lang.String | getDaytimePhone() return this.daytimePhone;
|
public java.lang.String | getEmail() return this.email;
|
public java.lang.String | getEveningPhone() return this.eveningPhone;
|
public java.lang.String | getFirstName() return this.firstName;
|
public java.lang.String | getLastName() return this.lastName;
|
public boolean | isValid()eveningPhone is the only optional field.
return this.firstName.length() > 0
&& this.lastName.length() > 0
&& this.daytimePhone.length() > 0
&& this.email.length() > 0;
|
public void | setDaytimePhone(java.lang.String daytimePhone)
this.daytimePhone = cleanup(daytimePhone);
|
public void | setEmail(java.lang.String email)
this.email = cleanup(email);
|
public void | setEveningPhone(java.lang.String eveningPhone)
this.eveningPhone = cleanup(eveningPhone);
|
public void | setFirstName(java.lang.String firstName)
this.firstName = cleanup(firstName);
|
public void | setLastName(java.lang.String lastName)
this.lastName = cleanup(lastName);
|