Coverage Report - org.kuali.student.r2.lum.clu.dto.CluIdentifierInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluIdentifierInfo
0%
0/37
0%
0/2
1.056
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.r2.lum.clu.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 19  
 import org.kuali.student.r2.lum.clu.infc.CluIdentifier;
 20  
 
 21  
 import javax.xml.bind.Element;
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAnyElement;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.XmlType;
 27  
 import java.io.Serializable;
 28  
 import java.util.List;
 29  
 
 30  
 /**
 31  
  * Detailed information about the human readable form of a CLU Identifier
 32  
  */
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "CluIdentifierInfo", propOrder = {"id", "typeKey", "stateKey", "code", "shortName", "longName", "level", "division", "variation", "suffixCode", "orgId", "meta", "attributes", "_futureElements"})
 35  
 public class CluIdentifierInfo extends IdNamelessEntityInfo implements CluIdentifier, Serializable {
 36  
 
 37  
     private static final long serialVersionUID = 1L;
 38  
 
 39  
     @XmlElement
 40  
     private String code;
 41  
 
 42  
     @XmlElement
 43  
     private String shortName;
 44  
 
 45  
     @XmlElement
 46  
     private String longName;
 47  
 
 48  
     @XmlElement
 49  
     private String level;
 50  
 
 51  
     @XmlElement
 52  
     private String division;
 53  
 
 54  
     @XmlElement
 55  
     private String variation;
 56  
 
 57  
     @XmlElement
 58  
     private String suffixCode;
 59  
 
 60  
     @XmlElement
 61  
     private String orgId;
 62  
 
 63  
     @XmlAnyElement
 64  
     private List<Element> _futureElements;
 65  
 
 66  0
     public CluIdentifierInfo() {
 67  
 
 68  0
     }
 69  
 
 70  
     public CluIdentifierInfo(CluIdentifier cluIdentifier) {
 71  0
         super(cluIdentifier);
 72  0
         if (null != cluIdentifier) {
 73  0
             this.code = cluIdentifier.getCode();
 74  0
             this.shortName = cluIdentifier.getShortName();
 75  0
             this.longName = cluIdentifier.getLongName();
 76  0
             this.level = cluIdentifier.getLevel();
 77  0
             this.division = cluIdentifier.getDivision();
 78  0
             this.variation = cluIdentifier.getVariation();
 79  0
             this.suffixCode = cluIdentifier.getSuffixCode();
 80  0
             this.orgId = cluIdentifier.getOrgId();
 81  
         }
 82  0
     }
 83  
 
 84  
     @Override
 85  
     public String getCode() {
 86  0
         return code;
 87  
     }
 88  
 
 89  
     public void setCode(String code) {
 90  0
         this.code = code;
 91  0
     }
 92  
 
 93  
     @Override
 94  
     public String getShortName() {
 95  0
         return shortName;
 96  
     }
 97  
 
 98  
     public void setShortName(String shortName) {
 99  0
         this.shortName = shortName;
 100  0
     }
 101  
 
 102  
     @Override
 103  
     public String getLongName() {
 104  0
         return longName;
 105  
     }
 106  
 
 107  
     public void setLongName(String longName) {
 108  0
         this.longName = longName;
 109  0
     }
 110  
 
 111  
     @Override
 112  
     public String getLevel() {
 113  0
         return level;
 114  
     }
 115  
 
 116  
     public void setLevel(String level) {
 117  0
         this.level = level;
 118  0
     }
 119  
 
 120  
     @Override
 121  
     public String getDivision() {
 122  0
         return division;
 123  
     }
 124  
 
 125  
     public void setDivision(String division) {
 126  0
         this.division = division;
 127  0
     }
 128  
 
 129  
     @Override
 130  
     public String getSuffixCode() {
 131  0
         return suffixCode;
 132  
     }
 133  
 
 134  
     public void setSuffixCode(String suffixCode) {
 135  0
         this.suffixCode = suffixCode;
 136  0
     }
 137  
 
 138  
     @Override
 139  
     public String getVariation() {
 140  0
         return variation;
 141  
     }
 142  
 
 143  
     public void setVariation(String variation) {
 144  0
         this.variation = variation;
 145  0
     }
 146  
 
 147  
     @Override
 148  
     public String getOrgId() {
 149  0
         return orgId;
 150  
     }
 151  
 
 152  
     public void setOrgId(String orgId) {
 153  0
         this.orgId = orgId;
 154  0
     }
 155  
 }