Coverage Report - org.kuali.student.lum.lu.dto.AdminOrgInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
AdminOrgInfo
0%
0/21
0%
0/2
1.083
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation 
 3  
  *
 4  
  * Licensed under the the Educational Community License, Version 1.0
 5  
  * (the "License"); you may not use this file except in compliance
 6  
  * with the License.  You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 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.lum.lu.dto;
 18  
 
 19  
 import org.kuali.student.core.dto.HasAttributes;
 20  
 import org.kuali.student.core.dto.Idable;
 21  
 import org.kuali.student.core.dto.MetaInfo;
 22  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 23  
 
 24  
 import javax.xml.bind.annotation.XmlAccessType;
 25  
 import javax.xml.bind.annotation.XmlAccessorType;
 26  
 import javax.xml.bind.annotation.XmlAttribute;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 29  
 import java.io.Serializable;
 30  
 import java.util.HashMap;
 31  
 import java.util.Map;
 32  
 
 33  
 
 34  
 /**
 35  
  * This is a description of what this class does - hjohnson don't
 36  
  * forget to fill this in.
 37  
  *
 38  
  * @author Kuali Student Team (kuali-student@googlegroups.com)
 39  
  */
 40  
 
 41  
 @XmlAccessorType(XmlAccessType.FIELD)
 42  0
 public class AdminOrgInfo implements Serializable, Idable, HasAttributes {
 43  
 
 44  
     private static final long serialVersionUID = 1L;
 45  
 
 46  
     @XmlAttribute
 47  
     private String id;
 48  
 
 49  
     @XmlElement
 50  
     private String orgId;
 51  
 
 52  
     @XmlElement
 53  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 54  
     private Map<String, String> attributes;
 55  
 
 56  
     @XmlElement
 57  
     private MetaInfo metaInfo;
 58  
 
 59  
     @XmlAttribute
 60  
     private String type;
 61  
 
 62  
     @XmlElement
 63  
     private boolean isPrimary;
 64  
 
 65  
 
 66  
     /*
 67  
     * Unique identifier for the accreditation.
 68  
     */
 69  
 
 70  
     public String getId() {
 71  0
         return id;
 72  
     }
 73  
 
 74  
     public void setId(String id) {
 75  0
         this.id = id;
 76  0
     }
 77  
 
 78  
 
 79  
     /*
 80  
     * Unique identifier for the organization responsible for the
 81  
     * accreditation.
 82  
     */
 83  
 
 84  
     public String getOrgId() {
 85  0
         return orgId;
 86  
     }
 87  
 
 88  
     public void setOrgId(String orgId) {
 89  0
         this.orgId = orgId;
 90  0
     }
 91  
 
 92  
 
 93  
     /**
 94  
      * List of key/value pairs, typically used for dynamic attributes.
 95  
      */
 96  
 
 97  
     public Map<String, String> getAttributes() {
 98  0
         if (attributes == null) {
 99  0
             attributes = new HashMap<String, String>();
 100  
         }
 101  0
         return attributes;
 102  
     }
 103  
 
 104  
     public void setAttributes(Map<String, String> attributes) {
 105  0
         this.attributes = attributes;
 106  0
     }
 107  
 
 108  
     public String getType() {
 109  0
         return type;
 110  
     }
 111  
 
 112  
     public void setType(String type) {
 113  0
         this.type = type;
 114  0
     }
 115  
 
 116  
     public boolean isPrimary() {
 117  0
         return isPrimary;
 118  
     }
 119  
 
 120  
     public void setPrimary(boolean isPrimary) {
 121  0
         this.isPrimary = isPrimary;
 122  0
     }
 123  
 
 124  
     public MetaInfo getMetaInfo() {
 125  0
         return metaInfo;
 126  
     }
 127  
 
 128  
     public void setMetaInfo(MetaInfo metaInfo) {
 129  0
         this.metaInfo = metaInfo;
 130  0
     }
 131  
 }