Coverage Report - org.kuali.rice.krms.impl.ui.EditorDocument
 
Classes in this File Line Coverage Branch Coverage Complexity
EditorDocument
0%
0/26
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * 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 implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.krms.impl.ui;
 17  
 
 18  
 import org.kuali.rice.core.util.Node;
 19  
 import org.kuali.rice.core.util.Tree;
 20  
 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
 21  
 import org.kuali.rice.krms.framework.engine.AgendaTree;
 22  
 import org.kuali.rice.krms.impl.repository.AgendaBo;
 23  
 import org.kuali.rice.krms.impl.repository.AgendaItemBo;
 24  
 import org.kuali.rice.krms.impl.repository.ContextBo;
 25  
 
 26  
 /**
 27  
  * This is a description of what this class does - gilesp don't forget to fill this in. 
 28  
  * 
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  *
 31  
  */
 32  0
 public class EditorDocument extends PersistableBusinessObjectBase {
 33  
         
 34  
         private static final long serialVersionUID = 1L;
 35  
         
 36  
         private ContextBo context;
 37  
         private AgendaBo agenda;
 38  
         private AgendaItemBo agendaItemAddLine;
 39  
 
 40  
     public Tree<AgendaItemBo, String> getAgendaRuleTree() {
 41  0
         Tree<AgendaItemBo, String> agendaTree = new Tree<AgendaItemBo, String>();
 42  
 
 43  0
         Node<AgendaItemBo, String> rootNode = new Node<AgendaItemBo, String>();
 44  0
         agendaTree.setRootElement(rootNode);
 45  
 
 46  0
         Node<AgendaItemBo, String> child1 = new Node<AgendaItemBo, String>();
 47  0
         child1.setNodeLabel("Animal Expenses Included. Reminder to include Animal special review");
 48  0
         child1.setData(new AgendaItemBo());
 49  0
         rootNode.getChildren().add(child1);
 50  
 
 51  0
         Node<AgendaItemBo, String> child2 = new Node<AgendaItemBo, String>();
 52  0
         child2.setNodeLabel("Animal Expenses Included. Reminder to include Animal special review");
 53  0
         child2.setData(new AgendaItemBo());
 54  0
         child1.getChildren().add(child2);
 55  
 
 56  0
         Node<AgendaItemBo, String> child3 = new Node<AgendaItemBo, String>();
 57  0
         child3.setNodeLabel("Animal Expenses Included. Reminder to include Animal special review");
 58  0
         child3.setData(new AgendaItemBo());
 59  0
         rootNode.getChildren().add(child3);
 60  
 
 61  0
         return agendaTree;
 62  
     }
 63  
         
 64  
         /**
 65  
      * @return the agendaItemAddLine
 66  
      */
 67  
     public AgendaItemBo getAgendaItemAddLine() {
 68  0
         return this.agendaItemAddLine;
 69  
     }
 70  
     /**
 71  
      * @param agendaItemAddLine the agendaItemAddLine to set
 72  
      */
 73  
     public void setAgendaItemAddLine(AgendaItemBo agendaItemAddLine) {
 74  0
         this.agendaItemAddLine = agendaItemAddLine;
 75  0
     }
 76  
     /**
 77  
          * @return the context
 78  
          */
 79  
         public ContextBo getContext() {
 80  0
                 return this.context;
 81  
         }
 82  
         /**
 83  
          * @param context the context to set
 84  
          */
 85  
         public void setContext(ContextBo context) {
 86  0
                 this.context = context;
 87  0
         }
 88  
         /**
 89  
          * @return the agenda
 90  
          */
 91  
         public AgendaBo getAgenda() {
 92  0
                 return this.agenda;
 93  
         }
 94  
         /**
 95  
          * @param agenda the agenda to set
 96  
          */
 97  
         public void setAgenda(AgendaBo agenda) {
 98  0
                 this.agenda = agenda;
 99  0
         }
 100  
         
 101  
         
 102  
 }