View Javadoc

1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.datadictionary.validation;
17  
18  import java.util.Date;
19  
20  /**
21   *
22   * @author Kuali Rice Team (rice.collab@kuali.org)
23   */
24  public class Address {
25  	private String street1, street2, city, state, postalCode, country, validationState;
26  	private Date effectiveDate;
27  
28  
29  	public Address(){
30  	}
31  
32  	public Address(String street1, String street2, String city, String state, String postalCode, String country, Date effectiveDate) {
33  		this.street1 = street1;
34  		this.street2 = street2;
35  		this.city = city;
36  		this.state = state;
37  		this.postalCode = postalCode;
38  		this.country = country;
39  		this.effectiveDate = effectiveDate;
40  	}
41  
42  	/**
43  	 * @return the street1
44  	 */
45  	public String getStreet1() {
46  		return this.street1;
47  	}
48  
49  	/**
50  	 * @param street1 the street1 to set
51  	 */
52  	public void setStreet1(String street1) {
53  		this.street1 = street1;
54  	}
55  
56  	/**
57  	 * @return the street2
58  	 */
59  	public String getStreet2() {
60  		return this.street2;
61  	}
62  
63  	/**
64  	 * @param street2 the street2 to set
65  	 */
66  	public void setStreet2(String street2) {
67  		this.street2 = street2;
68  	}
69  
70  	/**
71  	 * @return the city
72  	 */
73  	public String getCity() {
74  		return this.city;
75  	}
76  
77  	/**
78  	 * @param city the city to set
79  	 */
80  	public void setCity(String city) {
81  		this.city = city;
82  	}
83  
84  	/**
85  	 * @return the state
86  	 */
87  	public String getState() {
88  		return this.state;
89  	}
90  
91  	/**
92  	 * @param state the state to set
93  	 */
94  	public void setState(String state) {
95  		this.state = state;
96  	}
97  
98  	/**
99  	 * @return the postalCode
100 	 */
101 	public String getPostalCode() {
102 		return this.postalCode;
103 	}
104 
105 	/**
106 	 * @param postalCode the postalCode to set
107 	 */
108 	public void setPostalCode(String postalCode) {
109 		this.postalCode = postalCode;
110 	}
111 
112 	/**
113 	 * @return the country
114 	 */
115 	public String getCountry() {
116 		return this.country;
117 	}
118 
119 	/**
120 	 * @param country the country to set
121 	 */
122 	public void setCountry(String country) {
123 		this.country = country;
124 	}
125 
126 	/**
127 	 * @return the effectiveDate
128 	 */
129 	public Date getEffectiveDate() {
130 		return this.effectiveDate;
131 	}
132 
133 	/**
134 	 * @param effectiveDate the effectiveDate to set
135 	 */
136 	public void setEffectiveDate(Date effectiveDate) {
137 		this.effectiveDate = effectiveDate;
138 	}
139 
140     /**
141      * Validation state of the address object for testing
142      *
143      * @return validation state
144      */
145     public String getValidationState() {
146         return validationState;
147     }
148 
149     /**
150      * Validation state
151      *
152      * @param validationState validation state
153      */
154     public void setValidationState(String validationState) {
155         this.validationState = validationState;
156     }
157 }