Coverage Report - org.kuali.student.lum.lu.dto.LuDocRelationTypeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LuDocRelationTypeInfo
0%
0/21
0%
0/2
1.083
 
 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.lu.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Date;
 20  
 import java.util.HashMap;
 21  
 import java.util.Map;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAttribute;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 28  
 
 29  
 import org.kuali.student.core.dto.HasAttributes;
 30  
 import org.kuali.student.core.dto.Idable;
 31  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 32  
 
 33  
 /**
 34  
  *Detailed information about a single LU document relationship type.
 35  
  */ 
 36  
 @XmlAccessorType(XmlAccessType.FIELD)
 37  0
 public class LuDocRelationTypeInfo implements Serializable, Idable, HasAttributes {
 38  
 
 39  
     private static final long serialVersionUID = 1L;
 40  
 
 41  
     @XmlElement
 42  
     private String name;
 43  
 
 44  
     @XmlElement
 45  
     private String desc;
 46  
 
 47  
     @XmlElement
 48  
     private Date effectiveDate;
 49  
 
 50  
     @XmlElement
 51  
     private Date expirationDate;
 52  
 
 53  
     @XmlElement
 54  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 55  
     private Map<String, String> attributes;
 56  
 
 57  
     @XmlAttribute(name="key")
 58  
     private String id;
 59  
 
 60  
     /**
 61  
      * Friendly name of the LU document relationship type
 62  
      */
 63  
     public String getName() {
 64  0
         return name;
 65  
     }
 66  
 
 67  
     public void setName(String name) {
 68  0
         this.name = name;
 69  0
     }
 70  
 
 71  
     /**
 72  
      * Narrative description of the LU document relationship type
 73  
      */
 74  
     public String getDesc() {
 75  0
         return desc;
 76  
     }
 77  
 
 78  
     public void setDesc(String desc) {
 79  0
         this.desc = desc;
 80  0
     }
 81  
 
 82  
     /**
 83  
      * Date and time that this LU document relationship type 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.
 84  
      */
 85  
     public Date getEffectiveDate() {
 86  0
         return effectiveDate;
 87  
     }
 88  
 
 89  
     public void setEffectiveDate(Date effectiveDate) {
 90  0
         this.effectiveDate = effectiveDate;
 91  0
     }
 92  
 
 93  
     /**
 94  
      * Date and time that this LU document relationship type 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.
 95  
      */
 96  
     public Date getExpirationDate() {
 97  0
         return expirationDate;
 98  
     }
 99  
 
 100  
     public void setExpirationDate(Date expirationDate) {
 101  0
         this.expirationDate = expirationDate;
 102  0
     }
 103  
 
 104  
     /**
 105  
      * List of key/value pairs, typically used for dynamic attributes.
 106  
      */
 107  
     public Map<String, String> getAttributes() {
 108  0
         if (attributes == null) {
 109  0
             attributes = new HashMap<String, String>();
 110  
         }
 111  0
         return attributes;
 112  
     }
 113  
 
 114  
     public void setAttributes(Map<String, String> attributes) {
 115  0
         this.attributes = attributes;
 116  0
     }
 117  
 
 118  
     /**
 119  
      * The page luDocumentTypeKey Structure does not exist.
 120  
      */
 121  
     public String getId() {
 122  0
         return id;
 123  
     }
 124  
 
 125  
     public void setId(String id) {
 126  0
         this.id = id;
 127  0
     }
 128  
 }