Coverage Report - org.kuali.student.r2.core.population.dto.PopulationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
PopulationInfo
0%
0/20
0%
0/6
1.375
 
 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  
 package org.kuali.student.r2.core.population.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.List;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAnyElement;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.XmlType;
 27  
 
 28  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 29  
 import org.kuali.student.r2.core.population.infc.Population;
 30  
 
 31  
 import org.w3c.dom.Element;
 32  
 
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "PopulationInfo", propOrder = {"id",
 35  
     "typeKey",
 36  
     "stateKey",
 37  
     "name", 
 38  
     "descr",
 39  
     "sortOrderTypeKeys",
 40  
     "variesByTime",
 41  
     "supportsGetMembers",
 42  
     "meta",
 43  
     "attributes",
 44  
     "_futureElements"})
 45  
 public class PopulationInfo
 46  
         extends IdEntityInfo
 47  
         implements Population, Serializable {
 48  
 
 49  
     private static final long serialVersionUID = 1L;
 50  
     @XmlElement
 51  
     private List<String> sortOrderTypeKeys;
 52  
     @XmlElement
 53  
     private Boolean variesByTime;
 54  
     @XmlElement
 55  
     private Boolean supportsGetMembers;
 56  
     @XmlAnyElement
 57  
     private List<Element> _futureElements;
 58  
 
 59  
     /**
 60  
      * Constructs a new PopulationInfo.
 61  
      */
 62  0
     public PopulationInfo() {
 63  0
     }
 64  
 
 65  
     /**
 66  
      * Constructs a new PopulationInfo from another Population.
 67  
      * 
 68  
      * @param population the Population to copy
 69  
      */
 70  
     public PopulationInfo(Population population) {
 71  0
         super(population);
 72  
 
 73  0
         if (population != null) {
 74  0
             if (population.getSortOrderTypeKeys() != null) {
 75  0
                 this.sortOrderTypeKeys = new ArrayList<String>(population.getSortOrderTypeKeys());
 76  
             }
 77  
 
 78  0
             this.variesByTime = population.getVariesByTime();
 79  0
             this.supportsGetMembers = population.getSupportsGetMembers();
 80  
 
 81  
         }
 82  0
     }
 83  
 
 84  
     @Override
 85  
     public List<String> getSortOrderTypeKeys() {
 86  0
         if (this.sortOrderTypeKeys == null) {
 87  0
             this.sortOrderTypeKeys = new ArrayList<String>();
 88  
         }
 89  
 
 90  0
         return this.sortOrderTypeKeys;
 91  
     }
 92  
 
 93  
     public void setSortOrderTypeKeys(List<String> sortOrderTypeKeys) {
 94  0
         this.sortOrderTypeKeys = sortOrderTypeKeys;
 95  0
     }
 96  
 
 97  
     @Override
 98  
     public Boolean getVariesByTime() {
 99  0
         return this.variesByTime;
 100  
     }
 101  
 
 102  
     public void setVariesByTime(Boolean variesByTime) {
 103  0
         this.variesByTime = variesByTime;
 104  0
     }
 105  
 
 106  
     @Override
 107  
     public Boolean getSupportsGetMembers() {
 108  0
         return supportsGetMembers;
 109  
     }
 110  
 
 111  
     public void setSupportsGetMembers(Boolean supportsGetMembers) {
 112  0
         this.supportsGetMembers = supportsGetMembers;
 113  0
     }
 114  
 }