Coverage Report - org.kuali.rice.kew.dto.RouteNodeInstanceDTO
 
Classes in this File Line Coverage Branch Coverage Complexity
RouteNodeInstanceDTO
0%
0/41
0%
0/4
1.13
 
 1  
 /*
 2  
  * Copyright 2005-2009 The Kuali Foundation
 3  
  * 
 4  
  * 
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  * 
 9  
  * http://www.opensource.org/licenses/ecl2.php
 10  
  * 
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.kuali.rice.kew.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 
 21  
 /**
 22  
  * Transport object representing a RouteNodeInstance.
 23  
  * 
 24  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 25  
  */
 26  0
 public class RouteNodeInstanceDTO implements Serializable {
 27  
 
 28  
     private static final long serialVersionUID = -5456548621231617447L;
 29  
     
 30  
     private Long routeNodeInstanceId;
 31  
     private Long documentId;
 32  
     private Long branchId;
 33  
     private Long routeNodeId;
 34  
     private Long processId;
 35  
     private String name;
 36  
     private boolean active;
 37  
     private boolean complete;
 38  
     private boolean initial;
 39  0
     private StateDTO[] state = new StateDTO[0];
 40  0
     private RouteNodeInstanceDTO[] nextNodes = new RouteNodeInstanceDTO[0];
 41  
     
 42  
     public boolean isActive() {
 43  0
         return active;
 44  
     }
 45  
     public void setActive(boolean active) {
 46  0
         this.active = active;
 47  0
     }
 48  
     public Long getBranchId() {
 49  0
         return branchId;
 50  
     }
 51  
     public void setBranchId(Long branchId) {
 52  0
         this.branchId = branchId;
 53  0
     }
 54  
     public boolean isComplete() {
 55  0
         return complete;
 56  
     }
 57  
     public void setComplete(boolean complete) {
 58  0
         this.complete = complete;
 59  0
     }
 60  
     public Long getDocumentId() {
 61  0
         return documentId;
 62  
     }
 63  
     public void setDocumentId(Long documentId) {
 64  0
         this.documentId = documentId;
 65  0
     }
 66  
     public boolean isInitial() {
 67  0
         return initial;
 68  
     }
 69  
     public void setInitial(boolean initial) {
 70  0
         this.initial = initial;
 71  0
     }
 72  
     public Long getProcessId() {
 73  0
         return processId;
 74  
     }
 75  
     public void setProcessId(Long processId) {
 76  0
         this.processId = processId;
 77  0
     }
 78  
     public String getName() {
 79  0
         return name;
 80  
     }
 81  
     public void setName(String name) {
 82  0
         this.name = name;
 83  0
     }
 84  
     public Long getRouteNodeId() {
 85  0
         return routeNodeId;
 86  
     }
 87  
     public void setRouteNodeId(Long routeNodeId) {
 88  0
         this.routeNodeId = routeNodeId;
 89  0
     }
 90  
     public Long getRouteNodeInstanceId() {
 91  0
         return routeNodeInstanceId;
 92  
     }
 93  
     public void setRouteNodeInstanceId(Long routeNodeInstanceId) {
 94  0
         this.routeNodeInstanceId = routeNodeInstanceId;
 95  0
     }
 96  
     public StateDTO[] getState() {
 97  0
         return state;
 98  
     }
 99  
     public void setState(StateDTO[] state) {
 100  0
         this.state = state;
 101  0
     }
 102  
     
 103  
     public StateDTO getState(String key) {
 104  0
         for (int index = 0; index < getState().length; index++) {
 105  0
             StateDTO nodeState = (StateDTO) getState()[index];
 106  0
             if (nodeState.getKey().equals(key)) {
 107  0
                 return nodeState;
 108  
             }
 109  
         }
 110  0
         return null;
 111  
     }
 112  
     
 113  
     public RouteNodeInstanceDTO[] getNextNodes() {
 114  0
         return nextNodes;
 115  
     }
 116  
  
 117  
     public void setNextNodes(RouteNodeInstanceDTO[] nextNodes) {
 118  0
         this.nextNodes = nextNodes;
 119  0
     }
 120  
 }