Coverage Report - org.kuali.student.lum.lrc.dto.ResultComponentInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ResultComponentInfo
0%
0/35
0%
0/4
1.1
 
 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.lum.lrc.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.Date;
 21  
 import java.util.HashMap;
 22  
 import java.util.List;
 23  
 import java.util.Map;
 24  
 
 25  
 import javax.xml.bind.annotation.XmlAccessType;
 26  
 import javax.xml.bind.annotation.XmlAccessorType;
 27  
 import javax.xml.bind.annotation.XmlAttribute;
 28  
 import javax.xml.bind.annotation.XmlElement;
 29  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 30  
 
 31  
 import org.kuali.student.core.dto.HasAttributes;
 32  
 import org.kuali.student.core.dto.HasTypeState;
 33  
 import org.kuali.student.core.dto.Idable;
 34  
 import org.kuali.student.core.dto.MetaInfo;
 35  
 import org.kuali.student.core.dto.RichTextInfo;
 36  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 37  
 
 38  
 /**
 39  
  * Detailed information about a result component.
 40  
  *
 41  
  * @Author KSContractMojo
 42  
  * @Author lindholm
 43  
  * @Since Tue Apr 21 13:47:47 PDT 2009
 44  
  * @See <a href="https://test.kuali.org/confluence/display/KULSTU/resultComponentInfo+Structure">ResultComponentInfo</>
 45  
  *
 46  
  */
 47  
 @XmlAccessorType(XmlAccessType.FIELD)
 48  0
 public class ResultComponentInfo implements Serializable, Idable, HasTypeState, HasAttributes {
 49  
 
 50  
     private static final long serialVersionUID = 1L;
 51  
 
 52  
     @XmlElement
 53  
     private String name;
 54  
 
 55  
     @XmlElement
 56  
     private RichTextInfo desc;
 57  
 
 58  
     @XmlElement
 59  
     private List<String> resultValues;
 60  
 
 61  
     @XmlElement
 62  
     private Date effectiveDate;
 63  
 
 64  
     @XmlElement
 65  
     private Date expirationDate;
 66  
 
 67  
     @XmlElement
 68  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 69  
     private Map<String, String> attributes;
 70  
 
 71  
     @XmlElement
 72  
     private MetaInfo metaInfo;
 73  
 
 74  
     @XmlAttribute
 75  
     private String type;
 76  
 
 77  
     @XmlAttribute
 78  
     private String state;
 79  
 
 80  
     @XmlAttribute
 81  
     private String id;
 82  
 
 83  
     /**
 84  
      * Friendly name of the result component
 85  
      */
 86  
     public String getName() {
 87  0
         return name;
 88  
     }
 89  
 
 90  
     public void setName(String name) {
 91  0
         this.name = name;
 92  0
     }
 93  
 
 94  
     /**
 95  
      * Narrative description of the result component
 96  
      */
 97  
     public RichTextInfo getDesc() {
 98  0
         return desc;
 99  
     }
 100  
 
 101  
     public void setDesc(RichTextInfo desc) {
 102  0
         this.desc = desc;
 103  0
     }
 104  
 
 105  
     /**
 106  
      * List of result values
 107  
      */
 108  
     public List<String> getResultValues() {
 109  0
         if (resultValues == null) {
 110  0
             resultValues = new ArrayList<String>(0);
 111  
         }
 112  0
         return resultValues;
 113  
     }
 114  
 
 115  
     public void setResultValues(List<String> resultValues) {
 116  0
         this.resultValues = resultValues;
 117  0
     }
 118  
 
 119  
     /**
 120  
      * Date and time that this result component became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
 121  
      */
 122  
     public Date getEffectiveDate() {
 123  0
         return effectiveDate;
 124  
     }
 125  
 
 126  
     public void setEffectiveDate(Date effectiveDate) {
 127  0
         this.effectiveDate = effectiveDate;
 128  0
     }
 129  
 
 130  
     /**
 131  
      * Date and time that this result component expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
 132  
      */
 133  
     public Date getExpirationDate() {
 134  0
         return expirationDate;
 135  
     }
 136  
 
 137  
     public void setExpirationDate(Date expirationDate) {
 138  0
         this.expirationDate = expirationDate;
 139  0
     }
 140  
 
 141  
     /**
 142  
      * List of key/value pairs, typically used for dynamic attributes.
 143  
      */
 144  
     public Map<String, String> getAttributes() {
 145  0
         if (attributes == null) {
 146  0
             attributes = new HashMap<String, String>();
 147  
         }
 148  0
         return attributes;
 149  
     }
 150  
 
 151  
     public void setAttributes(Map<String, String> attributes) {
 152  0
         this.attributes = attributes;
 153  0
     }
 154  
 
 155  
     /**
 156  
      * 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.
 157  
      */
 158  
     public MetaInfo getMetaInfo() {
 159  0
         return metaInfo;
 160  
     }
 161  
 
 162  
     public void setMetaInfo(MetaInfo metaInfo) {
 163  0
         this.metaInfo = metaInfo;
 164  0
     }
 165  
 
 166  
     /**
 167  
      * Unique identifier for a result component type.
 168  
      */
 169  
     public String getType() {
 170  0
         return type;
 171  
     }
 172  
 
 173  
     public void setType(String type) {
 174  0
         this.type = type;
 175  0
     }
 176  
 
 177  
     /**
 178  
      * The current status of the result component. The values for this field are constrained to those in the state enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
 179  
      */
 180  
     public String getState() {
 181  0
         return state;
 182  
     }
 183  
 
 184  
     public void setState(String state) {
 185  0
         this.state = state;
 186  0
     }
 187  
 
 188  
     /**
 189  
      * Unique identifier for a result component. This is optional, due to the identifier being set at the time of creation. Once the result component has been created, this should be seen as required.
 190  
      */
 191  
     public String getId() {
 192  0
         return id;
 193  
     }
 194  
 
 195  
     public void setId(String id) {
 196  0
         this.id = id;
 197  0
     }
 198  
 }