Coverage Report - org.kuali.rice.kim.bo.role.dto.KimResponsibilityInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
KimResponsibilityInfo
0%
0/24
0%
0/4
1.133
 
 1  
 /*
 2  
  * Copyright 2008 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 responsibilitys and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kim.bo.role.dto;
 17  
 
 18  
 import org.apache.commons.lang.StringUtils;
 19  
 import org.apache.commons.lang.builder.ToStringBuilder;
 20  
 import org.kuali.rice.core.util.AttributeSet;
 21  
 import org.kuali.rice.kns.bo.Inactivateable;
 22  
 
 23  
 import java.io.Serializable;
 24  
 
 25  
 /**
 26  
  * This is a description of what this class does - kellerj don't forget to fill this in. 
 27  
  * 
 28  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 29  
  *
 30  
  */
 31  0
 public class KimResponsibilityInfo implements Serializable, Inactivateable {
 32  
 
 33  
         private static final long serialVersionUID = 7887896860986162310L;
 34  
         protected String namespaceCode;
 35  
         protected String name;
 36  
         protected String description;
 37  
         
 38  
         protected boolean active;
 39  
         
 40  
         public String getName() {
 41  0
                 return this.name;
 42  
         }
 43  
         public void setName(String name) {
 44  0
                 this.name = name;
 45  0
         }
 46  
         public String getDescription() {
 47  0
                 return this.description;
 48  
         }
 49  
         public void setDescription(String description) {
 50  0
                 this.description = description;
 51  0
         }
 52  
         public boolean isActive() {
 53  0
                 return this.active;
 54  
         }
 55  
         public void setActive(boolean active) {
 56  0
                 this.active = active;
 57  0
         }
 58  
         public String getNamespaceCode() {
 59  0
                 return this.namespaceCode;
 60  
         }
 61  
         public void setNamespaceCode(String namespaceCode) {
 62  0
                 this.namespaceCode = namespaceCode;
 63  0
         }
 64  
         /**
 65  
          * @see java.lang.Object#toString()
 66  
          */
 67  
         public String toString() {
 68  0
                 return new ToStringBuilder( this )
 69  
                                 .append( "responsibilityId", this.responsibilityId )
 70  
                                 .append( "namespaceCode", this.namespaceCode )
 71  
                                 .append( "details", this.details )
 72  
                                 .toString();
 73  
         }
 74  
 
 75  
         public boolean equals(Object object) {
 76  0
                 if (!(object instanceof KimResponsibilityInfo)) {
 77  0
                         return false;
 78  
                 }
 79  0
                 return StringUtils.equals( responsibilityId, ((KimResponsibilityInfo)object).responsibilityId );
 80  
         }
 81  
 
 82  
 
 83  
             protected String responsibilityId;
 84  
 
 85  
         protected AttributeSet details;
 86  
 
 87  
         public String getResponsibilityId() {
 88  0
                 return this.responsibilityId;
 89  
         }
 90  
 
 91  
         public void setResponsibilityId(String responsibilityId) {
 92  0
                 this.responsibilityId = responsibilityId;
 93  0
         }
 94  
 
 95  
         public AttributeSet getDetails() {
 96  0
                 return this.details;
 97  
         }
 98  
 
 99  
         public void setDetails(AttributeSet responsibilityDetails) {
 100  0
                 this.details = responsibilityDetails;
 101  0
         }
 102  
 
 103  
         public boolean hasDetails() {
 104  0
                 return !details.isEmpty();
 105  
         }
 106  
 }