001/** 002 * Copyright 2005-2014 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package edu.sampleu.bookstore.bo; 017 018import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; 019import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 020 021/** 022 * Address Business Object class file relative to Address maintenance object. 023 */ 024 025public class Address extends PersistableBusinessObjectBase implements MutableInactivatable { 026 027 private static final long serialVersionUID = -8624654503247320725L; 028 029 private Long addressId; 030 private String type; 031 private String street1; 032 private String street2; 033 private String city; 034 private String province; 035 private String country; 036 private Long authorId; 037 private boolean active = true; 038 039 private BSAddressType addressType; 040 041 042 043 044 /** 045 * @return the active 046 */ 047 public boolean isActive() { 048 return this.active; 049 } 050 051 /** 052 * @param active the active to set 053 */ 054 public void setActive(boolean active) { 055 this.active = active; 056 } 057 058 public Long getAuthorId() { 059 return authorId; 060 } 061 062 public void setAuthorId(Long authorId) { 063 this.authorId = authorId; 064 } 065 066 public Long getAddressId() { 067 return addressId; 068 } 069 070 public void setAddressId(Long addressId) { 071 this.addressId = addressId; 072 } 073 074 public String getType() { 075 return type; 076 } 077 078 public void setType(String type) { 079 this.type = type; 080 } 081 082 public BSAddressType getAddressType() { 083 return addressType; 084 } 085 086 public void setAddressType(BSAddressType addressType) { 087 this.addressType = addressType; 088 } 089 090 public String getStreet1() { 091 return street1; 092 } 093 094 public void setStreet1(String street1) { 095 this.street1 = street1; 096 } 097 098 public String getStreet2() { 099 return street2; 100 } 101 102 public void setStreet2(String street2) { 103 this.street2 = street2; 104 } 105 106 public String getCity() { 107 return city; 108 } 109 110 public void setCity(String city) { 111 this.city = city; 112 } 113 114 public String getProvince() { 115 return province; 116 } 117 118 public void setProvince(String province) { 119 this.province = province; 120 } 121 122 public String getCountry() { 123 return country; 124 } 125 126 public void setCountry(String country) { 127 this.country = country; 128 } 129 130 131}