Coverage Report - org.kuali.student.r2.core.state.dto.LifecycleInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LifecycleInfo
0%
0/23
0%
0/4
1.2
 
 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.r2.core.state.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 import java.util.Date;
 21  
 import java.util.List;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAnyElement;
 26  
 import javax.xml.bind.annotation.XmlAttribute;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.XmlType;
 29  
 
 30  
 import org.kuali.student.r2.core.state.infc.Lifecycle;
 31  
 import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo;
 32  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 33  
 import org.w3c.dom.Element;
 34  
 
 35  0
 @XmlAccessorType(XmlAccessType.FIELD)
 36  
 @XmlType(name = "LifecycleInfo", propOrder = {
 37  
                 "key", "name", "descr", "refObjectUri",
 38  
                 "meta", "attributes", "_futureElements"})
 39  
 
 40  
 public class LifecycleInfo 
 41  
     extends HasAttributesAndMetaInfo
 42  
     implements Lifecycle, Serializable {
 43  
 
 44  
     private static final long serialVersionUID = 1L;
 45  
     
 46  
     @XmlElement
 47  
     private String key;
 48  
 
 49  
     @XmlElement
 50  
     private String name;
 51  
 
 52  
     @XmlElement
 53  
     private RichTextInfo descr;
 54  
 
 55  
     @XmlElement
 56  
     private String refObjectUri;
 57  
 
 58  
     @XmlAnyElement
 59  
     private List<Element> _futureElements;    
 60  
     
 61  
 
 62  
     /**
 63  
      * Constructs a new LifecycleInfo.
 64  
      */
 65  0
     public LifecycleInfo() {
 66  0
     }
 67  
 
 68  
     /**
 69  
      * Constructs a new LifecycleInfo from
 70  
      * another Lifecycle.
 71  
      *
 72  
      * @param process
 73  
      */
 74  
                 
 75  
     public LifecycleInfo(Lifecycle lifecycle) {
 76  0
         super(lifecycle);
 77  
 
 78  0
         this.key = lifecycle.getKey();
 79  0
         if (lifecycle != null) {
 80  0
             this.name = lifecycle.getName();
 81  0
             if (lifecycle.getDescr() != null) {
 82  0
                 this.descr = new RichTextInfo(lifecycle.getDescr());
 83  
             }
 84  
         }
 85  
 
 86  0
         this.refObjectUri = lifecycle.getRefObjectUri();
 87  0
     }
 88  
         
 89  
     @Override
 90  
     public String getKey() {
 91  0
         return key;
 92  
     }
 93  
 
 94  
     public void setKey(String key) {
 95  0
         this.key = key;
 96  0
     }
 97  
 
 98  
     @Override
 99  
     public String getName() {
 100  0
         return name;
 101  
     }
 102  
 
 103  
     public void setName(String name) {
 104  0
         this.name = name;
 105  0
     }
 106  
 
 107  
     @Override
 108  
     public RichTextInfo getDescr() {
 109  0
         return descr;
 110  
     }
 111  
 
 112  
     public void setDescr(RichTextInfo descr) {
 113  0
         this.descr = descr;
 114  0
     }
 115  
 
 116  
     @Override
 117  
     public String getRefObjectUri() {
 118  0
         return refObjectUri;
 119  
     }
 120  
         
 121  
     public void setRefObjectUri(String refObjectUri) {
 122  0
         this.refObjectUri = refObjectUri;
 123  0
     }
 124  
 }