Coverage Report - org.kuali.student.core.statement.ui.client.widgets.rules.ReqComponentVO
 
Classes in this File Line Coverage Branch Coverage Complexity
ReqComponentVO
0%
0/27
0%
0/2
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.core.statement.ui.client.widgets.rules;
 17  
 
 18  
 import java.io.Serializable;
 19  
 
 20  
 import org.kuali.student.common.dto.Idable;
 21  
 import org.kuali.student.core.statement.dto.ReqComponentInfo;
 22  
 
 23  
 public class ReqComponentVO extends Token implements Serializable, Idable {
 24  
 
 25  
     private static final long serialVersionUID = 1L;
 26  
     private String id;
 27  
     private ReqComponentInfo reqComponentInfo;
 28  
     private String typeDesc;
 29  
     private boolean dirty;
 30  0
     private String clusetId = null;
 31  
     // for GUI use only the As, Bs and Cs, has no meaning in the LUM service
 32  
     private String guiReferenceLabelId;
 33  
 
 34  0
     public ReqComponentVO() {}
 35  
     
 36  0
     public ReqComponentVO(ReqComponentInfo reqComponentInfo) {
 37  0
         this.reqComponentInfo = reqComponentInfo;
 38  0
         this.id = reqComponentInfo.getId();
 39  0
     }
 40  
 
 41  
     public ReqComponentInfo getReqComponentInfo() {
 42  0
         return reqComponentInfo;
 43  
     }
 44  
 
 45  
     public void setReqComponentInfo(ReqComponentInfo reqComponentInfo) {
 46  0
         this.reqComponentInfo = reqComponentInfo;
 47  0
     }        
 48  
 
 49  
     public String getTypeDesc() {
 50  0
         return typeDesc;
 51  
     }
 52  
 
 53  
     public void setTypeDesc(String typeDesc) {
 54  0
         this.typeDesc = typeDesc;
 55  0
     }
 56  
     
 57  
     public boolean isDirty() {
 58  0
         return dirty;
 59  
     }
 60  
 
 61  
     public void setDirty(boolean dirty) {
 62  0
         this.dirty = dirty;
 63  0
     }
 64  
 
 65  
     public String getClusetId() {
 66  0
         return clusetId;
 67  
     }
 68  
 
 69  
     public void setClusetId(String clusetId) {
 70  0
         this.clusetId = clusetId;
 71  0
     }
 72  
     
 73  
     public String getGuiReferenceLabelId() {
 74  0
         return guiReferenceLabelId;
 75  
     }
 76  
 
 77  
     public void setGuiReferenceLabelId(String guiReferenceLabelId) {
 78  0
         this.guiReferenceLabelId = guiReferenceLabelId;
 79  0
         this.setTokenID(guiReferenceLabelId);
 80  0
     }
 81  
 
 82  
     @Override
 83  
     public String getId() {        
 84  0
         return id;
 85  
     }
 86  
 
 87  
     @Override
 88  
     public void setId(String id) {
 89  0
         this.id = id;
 90  0
     }
 91  
 
 92  
     @Override
 93  
     public boolean equals(Object obj) {
 94  0
         return this == obj;
 95  
     }
 96  
 
 97  
     @Override
 98  
     public String toString() {
 99  
         /*
 100  
         String reqCompDescription = typeDesc;
 101  
 
 102  
         for (ReqCompFieldInfo fieldInfo : reqComponentInfo.getReqCompFields()) {
 103  
             reqCompDescription = reqCompDescription.replaceAll("<" + fieldInfo.getId() + ">", fieldInfo.getValue());
 104  
         }
 105  
 
 106  
         return (reqCompDescription == null ? "" : reqCompDescription); */
 107  0
         return reqComponentInfo.getNaturalLanguageTranslation();
 108  
     }
 109  
 }