001 /*
002 * Copyright 2011 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 */
016 package org.kuali.kfs.module.ar.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.rice.kns.bo.Inactivateable;
021 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
022
023 /**
024 * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
025 */
026 public class PaymentMedium extends PersistableBusinessObjectBase implements Inactivateable {
027
028 private String customerPaymentMediumCode;
029 private String customerPaymentMediumDescription;
030 private boolean active;
031
032 /**
033 * Default constructor.
034 */
035 public PaymentMedium() {
036
037 }
038
039 /**
040 * Gets the customerPaymentMediumCode attribute.
041 *
042 * @return Returns the customerPaymentMediumCode
043 *
044 */
045 public String getCustomerPaymentMediumCode() {
046 return customerPaymentMediumCode;
047 }
048
049 /**
050 * Sets the customerPaymentMediumCode attribute.
051 *
052 * @param customerPaymentMediumCode The customerPaymentMediumCode to set.
053 *
054 */
055 public void setCustomerPaymentMediumCode(String customerPaymentMediumCode) {
056 this.customerPaymentMediumCode = customerPaymentMediumCode;
057 }
058
059
060 /**
061 * Gets the customerPaymentMediumDescription attribute.
062 *
063 * @return Returns the customerPaymentMediumDescription
064 *
065 */
066 public String getCustomerPaymentMediumDescription() {
067 return customerPaymentMediumDescription;
068 }
069
070 /**
071 * Sets the customerPaymentMediumDescription attribute.
072 *
073 * @param customerPaymentMediumDescription The customerPaymentMediumDescription to set.
074 *
075 */
076 public void setCustomerPaymentMediumDescription(String customerPaymentMediumDescription) {
077 this.customerPaymentMediumDescription = customerPaymentMediumDescription;
078 }
079
080
081 /**
082 * Gets the active attribute.
083 *
084 * @return Returns the active
085 *
086 */
087 public boolean isActive() {
088 return active;
089 }
090
091 /**
092 * Sets the active attribute.
093 *
094 * @param active The active to set.
095 *
096 */
097 public void setActive(boolean active) {
098 this.active = active;
099 }
100
101 /**
102 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
103 */
104 protected LinkedHashMap toStringMapper() {
105 LinkedHashMap m = new LinkedHashMap();
106 m.put("customerPaymentMediumCode", this.customerPaymentMediumCode);
107 return m;
108 }
109 }