Coverage Report - org.kuali.student.lum.lu.dto.CluIdentifierInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluIdentifierInfo
0%
0/39
0%
0/2
1.042
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation 
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the
 5  
  * "License"); you may not use this file except in compliance with the
 6  
  * License. You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.osedu.org/licenses/ECL-2.0
 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
 13  
  * implied. See the License for the specific language governing
 14  
  * permissions and limitations under the License.
 15  
  */
 16  
 
 17  
 package org.kuali.student.lum.lu.dto;
 18  
 
 19  
 import org.kuali.student.core.dto.Idable;
 20  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAttribute;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 27  
 import java.io.Serializable;
 28  
 import java.util.HashMap;
 29  
 import java.util.Map;
 30  
 
 31  
 /**
 32  
  * Detailed information about the human readable form of a CLU
 33  
  * Identifier.
 34  
  */
 35  
 
 36  
 @XmlAccessorType(XmlAccessType.FIELD)
 37  0
 public class CluIdentifierInfo implements Serializable, Idable {
 38  
 
 39  
     private static final long serialVersionUID = 1L;
 40  
 
 41  
     @XmlElement
 42  
     private String code;
 43  
 
 44  
     @XmlElement
 45  
     private String shortName;
 46  
 
 47  
     @XmlElement
 48  
     private String longName;
 49  
 
 50  
     @XmlElement
 51  
     private String level;
 52  
 
 53  
     @XmlElement
 54  
     private String division;
 55  
 
 56  
     @XmlElement
 57  
     private String variation;
 58  
 
 59  
     @XmlElement
 60  
     private String suffixCode;
 61  
 
 62  
     @XmlElement
 63  
     private String orgId;
 64  
 
 65  
     @XmlAttribute
 66  
     private String type;
 67  
 
 68  
     @XmlAttribute
 69  
     private String state;
 70  
 
 71  
     @XmlAttribute
 72  
     private String id;
 73  
 
 74  
     @XmlElement
 75  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 76  
     private Map<String, String> attributes;
 77  
 
 78  
 
 79  
     /**
 80  
      * The composite string that is used to officially reference or
 81  
      * publish the CLU. Note it may have an internal structure that
 82  
      * each Institution may want to enforce. This structure may be
 83  
      * composed from the other parts of the structure such as Level
 84  
      * amp; Division, but may include items such as cluType.
 85  
      */
 86  
 
 87  
     public String getCode() {
 88  0
         return code;
 89  
     }
 90  
 
 91  
     public void setCode(String code) {
 92  0
         this.code = code;
 93  0
     }
 94  
 
 95  
 
 96  
     /**
 97  
      * Abbreviated name of the CLU, commonly used on transcripts
 98  
      */
 99  
 
 100  
     public String getShortName() {
 101  0
         return shortName;
 102  
     }
 103  
 
 104  
     public void setShortName(String shortName) {
 105  0
         this.shortName = shortName;
 106  0
     }
 107  
 
 108  
     public String getLongName() {
 109  0
         return longName;
 110  
     }
 111  
 
 112  
     public void setLongName(String longName) {
 113  0
         this.longName = longName;
 114  0
     }
 115  
 
 116  
 
 117  
     /**
 118  
      * A code that indicates whether this is introductory, advanced,
 119  
      * etc.
 120  
      */
 121  
 
 122  
     public String getLevel() {
 123  0
         return level;
 124  
     }
 125  
 
 126  
     public void setLevel(String level) {
 127  0
         this.level = level;
 128  0
     }
 129  
 
 130  
 
 131  
     /**
 132  
      * A code that indicates what school, program, major, subject
 133  
      * area, etc. Examples: "Chem", "18"
 134  
      */
 135  
 
 136  
     public String getDivision() {
 137  0
         return division;
 138  
     }
 139  
 
 140  
     public void setDivision(String division) {
 141  0
         this.division = division;
 142  0
     }
 143  
 
 144  
 
 145  
     /*
 146  
     * The "extra" portion of the code, which usually corresponds with
 147  
     * the most detailed part of the number.
 148  
     */
 149  
 
 150  
     public String getSuffixCode() {
 151  0
         return suffixCode;
 152  
     }
 153  
 
 154  
     public void setSuffixCode(String suffixCode) {
 155  0
         this.suffixCode = suffixCode;
 156  0
     }
 157  
 
 158  
 
 159  
     /**
 160  
      * A number that indicates the sequence or order of versions in
 161  
      * cases where several different Clus have the same offical
 162  
      * Identifier
 163  
      */
 164  
 
 165  
     public String getVariation() {
 166  0
         return variation;
 167  
     }
 168  
 
 169  
     public void setVariation(String variation) {
 170  0
         this.variation = variation;
 171  0
     }
 172  
 
 173  
 
 174  
     /*
 175  
      * The identifier of the organization associated with this cluIdentifier.
 176  
      */
 177  
 
 178  
     public String getOrgId() {
 179  0
         return orgId;
 180  
     }
 181  
 
 182  
     public void setOrgId(String orgId) {
 183  0
         this.orgId = orgId;
 184  0
     }
 185  
 
 186  
 
 187  
     /**
 188  
      * Identifies the type of usage for the identifier. While most
 189  
      * usages will have the same data constraints, this may provide
 190  
      * some context around what the specific intent is for this
 191  
      * identifier. (Ex. Why does this alternate identifier exist?)
 192  
      */
 193  
 
 194  
     public String getType() {
 195  0
         return type;
 196  
     }
 197  
 
 198  
     public void setType(String type) {
 199  0
         this.type = type;
 200  0
     }
 201  
 
 202  
 
 203  
     /**
 204  
      * Identifies the state of the identifier. Values for this field
 205  
      * are constrained to values present within the cluIdentifierState
 206  
      * enumeration.
 207  
      */
 208  
 
 209  
     public String getState() {
 210  0
         return state;
 211  
     }
 212  
 
 213  
     public void setState(String state) {
 214  0
         this.state = state;
 215  0
     }
 216  
 
 217  
 
 218  
     /**
 219  
      * Identifies the particular identifier structure. This is set by
 220  
      * the service to be able to determine changes and alterations to
 221  
      * the structure as well as provides a handle for searches. This
 222  
      * structure is not accessible through unique operations, and it
 223  
      * is strongly recommended that no external references to this
 224  
      * particular identifier be maintained.
 225  
      */
 226  
 
 227  
     public String getId() {
 228  0
         return id;
 229  
     }
 230  
 
 231  
     public void setId(String id) {
 232  0
         this.id = id;
 233  0
     }
 234  
 
 235  
     public Map<String, String> getAttributes() {
 236  0
         if (attributes == null) {
 237  0
             attributes = new HashMap<String, String>();
 238  
         }
 239  
 
 240  0
         return attributes;
 241  
     }
 242  
 
 243  
     public void setAttributes(Map<String, String> attributes) {
 244  0
         this.attributes = attributes;
 245  0
     }
 246  
 }