Coverage Report - org.kuali.student.lum.program.dto.ProgramRequirementInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ProgramRequirementInfo
0%
0/41
0%
0/4
1.083
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.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/ecl1.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.student.lum.program.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.HashMap;
 21  
 import java.util.List;
 22  
 import java.util.Map;
 23  
 
 24  
 import javax.xml.bind.annotation.XmlAccessType;
 25  
 import javax.xml.bind.annotation.XmlAccessorType;
 26  
 import javax.xml.bind.annotation.XmlAttribute;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 29  
 
 30  
 import org.kuali.student.core.dto.HasAttributes;
 31  
 import org.kuali.student.core.dto.HasTypeState;
 32  
 import org.kuali.student.core.dto.Idable;
 33  
 import org.kuali.student.core.dto.MetaInfo;
 34  
 import org.kuali.student.core.dto.RichTextInfo;
 35  
 import org.kuali.student.core.statement.dto.StatementTreeViewInfo;
 36  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 37  
 import org.kuali.student.lum.course.dto.LoDisplayInfo;
 38  
 import org.kuali.student.lum.program.dto.assembly.ProgramCommonAssembly;
 39  
 
 40  
 /**
 41  
  * Detailed information about a program requirement
 42  
  *
 43  
  * @Author KSContractMojo
 44  
  * @Author Li Pan
 45  
  * @Since Wed Jun 30 14:56:20 PDT 2010
 46  
  * @See <a href="https://test.kuali.org/confluence/display/KULSTU/programRequirementInfo+Structure">ProgramRequirementInfo</>
 47  
  *
 48  
  */
 49  
 @XmlAccessorType(XmlAccessType.FIELD)
 50  0
 public class ProgramRequirementInfo implements Serializable, Idable, HasTypeState, HasAttributes, ProgramCommonAssembly {
 51  
 
 52  
     private static final long serialVersionUID = 1L;
 53  
 
 54  
     @XmlElement
 55  
     private String shortTitle;
 56  
 
 57  
     @XmlElement
 58  
     private String longTitle;
 59  
 
 60  
     @XmlElement
 61  
     private RichTextInfo descr;
 62  
 
 63  
     @XmlElement
 64  
     private List<LoDisplayInfo> learningObjectives;
 65  
 
 66  
     @XmlElement
 67  
     private StatementTreeViewInfo statement;
 68  
 
 69  
     @XmlElement
 70  
     Integer minCredits;
 71  
     
 72  
     @XmlElement
 73  
     Integer maxCredits;
 74  
     
 75  
     @XmlElement
 76  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 77  
     private Map<String, String> attributes;
 78  
 
 79  
     @XmlElement
 80  
     private MetaInfo metaInfo;
 81  
 
 82  
     @XmlAttribute
 83  
     private String type;
 84  
 
 85  
     @XmlAttribute
 86  
     private String state;
 87  
 
 88  
     @XmlAttribute
 89  
     private String id;
 90  
 
 91  
     public String getShortTitle() {
 92  0
         return shortTitle;
 93  
     }
 94  
 
 95  
     public void setShortTitle(String shortTitle) {
 96  0
         this.shortTitle = shortTitle;
 97  0
     }
 98  
 
 99  
     public String getLongTitle() {
 100  0
         return longTitle;
 101  
     }
 102  
 
 103  
     public void setLongTitle(String longTitle) {
 104  0
         this.longTitle = longTitle;
 105  0
     }
 106  
 
 107  
     public RichTextInfo getDescr() {
 108  0
         return descr;
 109  
     }
 110  
 
 111  
     public void setDescr(RichTextInfo descr) {
 112  0
         this.descr = descr;
 113  0
     }
 114  
 
 115  
     public List<LoDisplayInfo> getLearningObjectives() {
 116  0
         if(null == learningObjectives) {
 117  0
             learningObjectives = new ArrayList<LoDisplayInfo>(0);
 118  
         }
 119  0
         return learningObjectives;
 120  
     }
 121  
 
 122  
     public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) {
 123  0
         this.learningObjectives = learningObjectives;
 124  0
     }
 125  
 
 126  
     public StatementTreeViewInfo getStatement() {
 127  0
         return statement;
 128  
     }
 129  
 
 130  
     public void setStatement(StatementTreeViewInfo statement) {
 131  0
         this.statement = statement;
 132  0
     }
 133  
     
 134  
     public Integer getMinCredits() {
 135  0
         return minCredits;
 136  
     }
 137  
 
 138  
     public void setMinCredits(Integer minCredits) {
 139  0
         this.minCredits = minCredits;
 140  0
     }
 141  
 
 142  
     public Integer getMaxCredits() {
 143  0
         return maxCredits;
 144  
     }
 145  
 
 146  
     public void setMaxCredits(Integer maxCredits) {
 147  0
         this.maxCredits = maxCredits;
 148  0
     }
 149  
 
 150  
     /**
 151  
      * List of key/value pairs, typically used for dynamic attributes.
 152  
      */
 153  
     @Override
 154  
     public Map<String, String> getAttributes() {
 155  0
         if (attributes == null) {
 156  0
             attributes = new HashMap<String, String>();
 157  
         }
 158  0
         return attributes;
 159  
     }
 160  
 
 161  
     @Override
 162  
     public void setAttributes(Map<String, String> attributes) {
 163  0
         this.attributes = attributes;
 164  0
     }
 165  
 
 166  
     /**
 167  
      * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
 168  
      */
 169  
     public MetaInfo getMetaInfo() {
 170  0
         return metaInfo;
 171  
     }
 172  
 
 173  
     public void setMetaInfo(MetaInfo metaInfo) {
 174  0
         this.metaInfo = metaInfo;
 175  0
     }
 176  
 
 177  
     /**
 178  
      * Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
 179  
      */
 180  
     @Override
 181  
     public String getType() {
 182  0
         return type;
 183  
     }
 184  
 
 185  
     @Override
 186  
     public void setType(String type) {
 187  0
         this.type = type;
 188  0
     }
 189  
 
 190  
     /**
 191  
      * The current status of the credential program. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
 192  
      */
 193  
     @Override
 194  
     public String getState() {
 195  0
         return state;
 196  
     }
 197  
 
 198  
     @Override
 199  
     public void setState(String state) {
 200  0
         this.state = state;
 201  0
     }
 202  
 
 203  
     /**
 204  
      * Unique identifier for a Program Requirement This is optional, due to the identifier being set at the time of creation. Once the Program has been created, this should be seen as required.
 205  
      */
 206  
     @Override
 207  
     public String getId() {
 208  0
         return id;
 209  
     }
 210  
 
 211  
     @Override
 212  
     public void setId(String id) {
 213  0
         this.id = id;
 214  0
     }
 215  
 }