Coverage Report - org.kuali.student.r2.core.process.dto.InstructionInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
InstructionInfo
0%
0/48
0%
0/10
1.25
 
 1  
 /*
 2  
  * Copyright 2011 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.process.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 import java.util.ArrayList;
 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.XmlElement;
 27  
 import javax.xml.bind.annotation.XmlType;
 28  
 
 29  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 30  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 31  
 import org.kuali.student.r2.core.process.infc.Instruction;
 32  
 
 33  
 import org.w3c.dom.Element;
 34  
 
 35  0
 @XmlAccessorType(XmlAccessType.FIELD)
 36  
 @XmlType(name = "InstructionInfo", propOrder = { "id", "typeKey", "stateKey", 
 37  
                 "effectiveDate", "expirationDate",
 38  
                 "processKey", "checkKey", 
 39  
                 "appliedPopulationKeys", "appliedAtpTypeKeys",
 40  
                 "message", "position", "isWarning", 
 41  
                 "continueOnFail", "isExemptable", 
 42  
                 "meta", "attributes",
 43  
                 "_futureElements" })
 44  
 
 45  
 public class InstructionInfo 
 46  
     extends RelationshipInfo 
 47  
     implements Instruction, Serializable {
 48  
 
 49  
     private static final long serialVersionUID = 1L;
 50  
     
 51  
     @XmlElement 
 52  
     private String processKey;
 53  
 
 54  
     @XmlElement 
 55  
     private String checkKey;
 56  
 
 57  
     @XmlElement 
 58  
     private List<String> appliedPopulationKeys;
 59  
 
 60  
     @XmlElement 
 61  
     private List<String> appliedAtpTypeKeys;
 62  
 
 63  
     @XmlElement 
 64  
     private RichTextInfo message;
 65  
 
 66  
     @XmlElement 
 67  
     private Integer position;
 68  
 
 69  
     @XmlElement 
 70  
     private Boolean isWarning;
 71  
 
 72  
     @XmlElement 
 73  
     private Boolean continueOnFail;
 74  
 
 75  
     @XmlElement 
 76  
     private Boolean isExemptable;
 77  
 
 78  
     @XmlAnyElement
 79  
     private List<Element> _futureElements;
 80  
     
 81  
 
 82  
     /**
 83  
      * Constructs a new InstructionInfo.
 84  
      */
 85  0
     public InstructionInfo() {
 86  0
     }
 87  
 
 88  
     /**
 89  
      * Constructs a new InstructionInfo from another Instruction.
 90  
      * 
 91  
      * @param instruction the Instruction to copy
 92  
      */
 93  
     public InstructionInfo(Instruction instruction) {
 94  0
         super(instruction);
 95  
 
 96  0
         if (instruction != null) {
 97  0
             this.processKey= instruction.getProcessKey();
 98  0
             this.checkKey = instruction.getCheckKey();
 99  
 
 100  0
             if (instruction.getAppliedPopulationKeys() != null) {
 101  0
                 this.appliedPopulationKeys = new ArrayList<String>(instruction.getAppliedPopulationKeys());
 102  
             }
 103  
 
 104  0
             if (instruction.getAppliedAtpTypeKeys() != null) {
 105  0
                 this.appliedAtpTypeKeys = new ArrayList<String>(instruction.getAppliedAtpTypeKeys());
 106  
             }
 107  
 
 108  0
             this.message = new RichTextInfo(instruction.getMessage());
 109  0
             this.position = instruction.getPosition();
 110  0
             this.isWarning = instruction.getIsWarning();
 111  0
             this.continueOnFail = instruction.getContinueOnFail();
 112  0
             this.isExemptable = instruction.getIsExemptable();
 113  
         }
 114  0
     }
 115  
 
 116  
     @Override
 117  
     public String getProcessKey() {
 118  0
         return this.processKey;
 119  
     }
 120  
 
 121  
     public void setProcessKey(String processKey) {
 122  0
         this.processKey = processKey;
 123  0
     }
 124  
 
 125  
     @Override
 126  
     public String getCheckKey() {
 127  0
         return this.checkKey;
 128  
     }
 129  
 
 130  
     public void setCheckKey(String checkKey) {
 131  0
         this.checkKey = checkKey;
 132  0
     }
 133  
 
 134  
     @Override
 135  
     public List<String> getAppliedPopulationKeys() {
 136  0
         if (this.appliedPopulationKeys == null) {
 137  0
             this.appliedPopulationKeys = new ArrayList<String>();
 138  
         }
 139  
 
 140  0
         return this.appliedPopulationKeys;
 141  
     }
 142  
 
 143  
     public void setAppliedPopulationKeys(List<String> appliedPopulationKeys) {
 144  0
         this.appliedPopulationKeys = appliedPopulationKeys;
 145  0
     }
 146  
 
 147  
     @Override
 148  
     public List<String> getAppliedAtpTypeKeys() {
 149  0
         if (this.appliedAtpTypeKeys == null) {
 150  0
             this.appliedAtpTypeKeys = new ArrayList<String>();
 151  
         }
 152  
 
 153  0
         return this.appliedAtpTypeKeys;
 154  
     }
 155  
 
 156  
     public void setAppliedAtpTypeKeys(List<String> appliedAtpTypeKeys) {
 157  0
         this.appliedAtpTypeKeys = appliedAtpTypeKeys;
 158  0
     }
 159  
 
 160  
     @Override
 161  
     public RichTextInfo getMessage() {
 162  0
         return this.message;
 163  
     }
 164  
 
 165  
     public void setMessage(RichTextInfo message) {
 166  0
         this.message = message;
 167  0
     }
 168  
 
 169  
     @Override
 170  
     public Integer getPosition() {
 171  0
         return this.position;
 172  
     }
 173  
 
 174  
     public void setPosition(Integer position) {
 175  0
         this.position = position;
 176  0
     }
 177  
 
 178  
     @Override
 179  
     public Boolean getIsWarning() {
 180  0
         return this.isWarning;
 181  
     }
 182  
 
 183  
     public void setIsWarning(Boolean isWarning) {
 184  0
         this.isWarning = isWarning;
 185  0
     }
 186  
 
 187  
     @Override
 188  
     public Boolean getContinueOnFail() {
 189  0
         return this.continueOnFail;
 190  
     }
 191  
 
 192  
     public void setContinueOnFail(Boolean continueOnFail) {
 193  0
         this.continueOnFail = continueOnFail;
 194  0
     }
 195  
 
 196  
     @Override
 197  
     public Boolean getIsExemptable() {
 198  0
         return this.isExemptable;
 199  
     }
 200  
 
 201  
     public void setIsExemptable(Boolean isExemptable) {
 202  0
         this.isExemptable = isExemptable;
 203  0
     }
 204  
 }