Coverage Report - org.kuali.rice.kim.bo.entity.dto.KimEntityCitizenshipInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
KimEntityCitizenshipInfo
0%
0/26
0%
0/2
1.083
 
 1  
 /*
 2  
  * Copyright 2007-2009 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.kim.bo.entity.dto;
 17  
 
 18  
 import java.util.Date;
 19  
 
 20  
 import org.kuali.rice.kim.bo.entity.KimEntityCitizenship;
 21  
 
 22  
 /**
 23  
  * A DTO that contains entity citizenship info.
 24  
  * 
 25  
  * @author Kuali Rice Team (kuali-rice@googlegroups.com)
 26  
  *
 27  
  */
 28  
 public class KimEntityCitizenshipInfo extends KimInactivatableInfo implements KimEntityCitizenship {
 29  
 
 30  
         private static final long serialVersionUID = 1L;
 31  
         
 32  
         private String citizenshipStatusCode;
 33  
         private String countryCode;
 34  
         private Date endDate;
 35  
         private Date startDate;
 36  
         private String entityCitizenshipId;
 37  
         
 38  
         public KimEntityCitizenshipInfo() {
 39  0
                 super();
 40  0
                 active = true;
 41  0
         }
 42  
 
 43  
         public KimEntityCitizenshipInfo(KimEntityCitizenship kimEntityCitizenship) {
 44  0
                 this();
 45  0
                 if ( kimEntityCitizenship != null ) {
 46  0
                         citizenshipStatusCode = kimEntityCitizenship.getCitizenshipStatusCode();
 47  0
                         countryCode = kimEntityCitizenship.getCountryCode();
 48  0
                         endDate = kimEntityCitizenship.getEndDate();
 49  0
                         startDate = kimEntityCitizenship.getStartDate();
 50  0
                         entityCitizenshipId = kimEntityCitizenship.getEntityCitizenshipId();
 51  
                 }
 52  0
         }
 53  
 
 54  
         /**
 55  
          * {@inheritDoc} 
 56  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getCitizenshipStatusCode()
 57  
          */
 58  
         public String getCitizenshipStatusCode() {
 59  0
                 return citizenshipStatusCode;
 60  
         }
 61  
 
 62  
         /**
 63  
          * @param citizenshipStatusCode the citizenshipStatusCode to set
 64  
          */
 65  
         public void setCitizenshipStatusCode(String citizenshipStatusCode) {
 66  0
                 this.citizenshipStatusCode = citizenshipStatusCode;
 67  0
         }
 68  
 
 69  
         /**
 70  
          * {@inheritDoc} 
 71  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getCountryCode()
 72  
          */
 73  
         public String getCountryCode() {
 74  0
                 return countryCode;
 75  
         }
 76  
 
 77  
         /**
 78  
          * @param countryCode the countryCode to set
 79  
          */
 80  
         public void setCountryCode(String countryCode) {
 81  0
                 this.countryCode = countryCode;
 82  0
         }
 83  
 
 84  
         /**
 85  
          * {@inheritDoc} 
 86  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getEndDate()
 87  
          */
 88  
         public Date getEndDate() {
 89  0
                 return this.endDate;
 90  
         }
 91  
 
 92  
         /**
 93  
          * @param endDate the endDate to set
 94  
          */
 95  
         public void setEndDate(Date endDate) {
 96  0
                 this.endDate = endDate;
 97  0
         }
 98  
 
 99  
         /**
 100  
          * {@inheritDoc} 
 101  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getStartDate()
 102  
          */
 103  
         public Date getStartDate() {
 104  0
                 return this.startDate;
 105  
         }
 106  
 
 107  
         /**
 108  
          * @param startDate the startDate to set
 109  
          */
 110  
         public void setStartDate(Date startDate) {
 111  0
                 this.startDate = startDate;
 112  0
         }
 113  
 
 114  
         /**
 115  
          * {@inheritDoc} 
 116  
          * @see org.kuali.rice.kim.bo.entity.KimEntityCitizenship#getEntityCitizenshipId()
 117  
          */
 118  
         public String getEntityCitizenshipId() {
 119  0
                 return entityCitizenshipId;
 120  
         }
 121  
 
 122  
         /**
 123  
          * @param entityCitizenshipId the entityCitizenshipId to set
 124  
          */
 125  
         public void setEntityCitizenshipId(String entityCitizenshipId) {
 126  0
                 this.entityCitizenshipId = entityCitizenshipId;
 127  0
         }
 128  
 
 129  
 }