summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/util/Person.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/util/Person.java')
-rw-r--r--uitest/src/com/vaadin/tests/util/Person.java96
1 files changed, 96 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/util/Person.java b/uitest/src/com/vaadin/tests/util/Person.java
new file mode 100644
index 0000000000..72f6b7d20d
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/util/Person.java
@@ -0,0 +1,96 @@
+package com.vaadin.tests.util;
+
+import java.io.Serializable;
+
+@SuppressWarnings("serial")
+public class Person implements Serializable {
+ private String firstName = "";
+ private String lastName = "";
+ private String email = "";
+ private String phoneNumber = "";
+ private Address address = new Address();
+
+ public Person() {
+ address = new Address();
+ }
+
+ public Person(String firstName, String lastName, String email,
+ String phoneNumber, String streetAddress, int postalCode,
+ String city) {
+ setFirstName(firstName);
+ setLastName(lastName);
+ setEmail(email);
+ setPhoneNumber(phoneNumber);
+ address = new Address(streetAddress, postalCode, city);
+ }
+
+ /**
+ * @return the firstName
+ */
+ public String getFirstName() {
+ return firstName;
+ }
+
+ /**
+ * @param firstName
+ * the firstName to set
+ */
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ /**
+ * @return the lastName
+ */
+ public String getLastName() {
+ return lastName;
+ }
+
+ /**
+ * @param lastName
+ * the lastName to set
+ */
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ /**
+ * @return the email
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * @param email
+ * the email to set
+ */
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ /**
+ * @return the phoneNumber
+ */
+ public String getPhoneNumber() {
+ return phoneNumber;
+ }
+
+ /**
+ * @param phoneNumber
+ * the phoneNumber to set
+ */
+ public void setPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+
+ /**
+ * Returns the address where the person lives.
+ *
+ * @return address (not null)
+ */
+ public Address getAddress() {
+ return address;
+ }
+
+} \ No newline at end of file