Coverage Report - org.kuali.student.r2.core.organization.dto.OrgOrgRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
OrgOrgRelationInfo
0%
0/13
0%
0/2
1.167
 
 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.organization.dto;
 18  
 
 19  
 import java.io.Serializable;
 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.core.organization.infc.OrgOrgRelation;
 29  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 /**
 33  
  * Detailed information about a single organization to organization
 34  
  * relationship.
 35  
  *
 36  
  * @author tom
 37  
  */ 
 38  
 @XmlAccessorType(XmlAccessType.FIELD)
 39  
 @XmlType(name = "OrgOrgRelationInfo", propOrder = {
 40  
                 "id", "typeKey", "stateKey",
 41  
                 "orgId", "relatedOrgId",
 42  
                 "effectiveDate", "expirationDate",
 43  
                 "meta", "attributes", "_futureElements" })
 44  
 
 45  
 public class OrgOrgRelationInfo 
 46  
     extends RelationshipInfo
 47  
     implements OrgOrgRelation, Serializable {
 48  
 
 49  
     private static final long serialVersionUID = 1L;
 50  
 
 51  
     @XmlElement
 52  
     private String orgId;
 53  
 
 54  
     @XmlElement
 55  
     private String relatedOrgId;
 56  
 
 57  
     @XmlAnyElement
 58  
     private List<Element> _futureElements;
 59  
 
 60  
 
 61  
     /**
 62  
      * Constructs a new OrgOrgRelationInfo.
 63  
      */
 64  0
     public OrgOrgRelationInfo() {
 65  0
     }
 66  
 
 67  
     /**
 68  
      * Constructs a new OrgOrgRelationInfo from an OrgOrgRelation.
 69  
      *
 70  
      * @param orgOrgRelation the OrgOrgRelation to copy
 71  
      */
 72  
     public OrgOrgRelationInfo(OrgOrgRelation orgOrgRelation) {
 73  0
         super(orgOrgRelation);
 74  
 
 75  0
         if (orgOrgRelation != null) {
 76  0
             this.orgId = orgOrgRelation.getOrgId();
 77  0
             this.relatedOrgId = orgOrgRelation.getRelatedOrgId();
 78  
         }
 79  0
     }
 80  
 
 81  
     @Override
 82  
     public String getOrgId() {
 83  0
         return orgId;
 84  
     }
 85  
 
 86  
     public void setOrgId(String orgId) {
 87  0
         this.orgId = orgId;
 88  0
     }
 89  
 
 90  
     @Override
 91  
     public String getRelatedOrgId() {
 92  0
         return relatedOrgId;
 93  
     }
 94  
 
 95  
     public void setRelatedOrgId(String relatedOrgId) {
 96  0
         this.relatedOrgId = relatedOrgId;
 97  0
     }
 98  
 }