Coverage Report - pt.digitalis.dif.controller.objects.ResultMessage
 
Classes in this File Line Coverage Branch Coverage Complexity
ResultMessage
0%
0/23
N/A
1
 
 1  0
 /**
 2  
  * 2009, Digitalis Informatica. All rights reserved. Distribuicao e Gestao de Informatica, Lda. Estrada de Paco de Arcos
 3  
  * num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999 http://www.digitalis.pt
 4  
  */
 5  
 
 6  
 package pt.digitalis.dif.controller.objects;
 7  
 
 8  
 /**
 9  
  * Result message type for all stages. Will contain erros, warns and other messages that we wish to convey to the user
 10  
  * 
 11  
  * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a><br/>
 12  
  * @created Nov 4, 2009
 13  
  */
 14  
 public class ResultMessage {
 15  
 
 16  
     /** the detailed body of the message */
 17  
     private String description;
 18  
 
 19  
     /** The mode. */
 20  
     private String mode;
 21  
 
 22  
     /** if T will show the message in a popup dialog */
 23  
     private boolean popupMode;
 24  
 
 25  
     /** the title of the message */
 26  
     private String title;
 27  
 
 28  
     /** the type of the message */
 29  
     private String type;
 30  
 
 31  
     /**
 32  
      * Constructor.
 33  
      * 
 34  
      * @param type
 35  
      *            the type
 36  
      * @param title
 37  
      *            the title
 38  
      * @param description
 39  
      *            the description
 40  
      * @param popupMode
 41  
      *            the popup mode
 42  
      * @param mode
 43  
      *            the mode
 44  
      */
 45  0
     public ResultMessage(String type, String title, String description, boolean popupMode, String mode)
 46  
     {
 47  0
         this.type = type;
 48  0
         this.title = title;
 49  0
         this.description = description;
 50  0
         this.popupMode = popupMode;
 51  0
         this.mode = mode;
 52  0
     }
 53  
 
 54  
     /**
 55  
      * Inspector for the 'description' attribute.
 56  
      * 
 57  
      * @return the description value
 58  
      */
 59  
     public String getDescription()
 60  
     {
 61  0
         return description;
 62  
     }
 63  
 
 64  
     /**
 65  
      * Inspector for the 'mode' attribute.
 66  
      * 
 67  
      * @return the mode value
 68  
      */
 69  
     public String getMode()
 70  
     {
 71  0
         return mode;
 72  
     }
 73  
 
 74  
     /**
 75  
      * Inspector for the 'title' attribute.
 76  
      * 
 77  
      * @return the title value
 78  
      */
 79  
     public String getTitle()
 80  
     {
 81  0
         return title;
 82  
     }
 83  
 
 84  
     /**
 85  
      * Inspector for the 'type' attribute.
 86  
      * 
 87  
      * @return the type value
 88  
      */
 89  
     public String getType()
 90  
     {
 91  0
         return type;
 92  
     }
 93  
 
 94  
     /**
 95  
      * Inspector for the 'popupMode' attribute.
 96  
      * 
 97  
      * @return the popupMode value
 98  
      */
 99  
     public boolean isPopupMode()
 100  
     {
 101  0
         return popupMode;
 102  
     }
 103  
 
 104  
     /**
 105  
      * Modifier for the 'description' attribute.
 106  
      * 
 107  
      * @param description
 108  
      *            the new description value to set
 109  
      */
 110  
     public void setDescription(String description)
 111  
     {
 112  0
         this.description = description;
 113  0
     }
 114  
 
 115  
     /**
 116  
      * Modifier for the 'mode' attribute.
 117  
      * 
 118  
      * @param mode
 119  
      *            the new mode value to set
 120  
      */
 121  
     public void setMode(String mode)
 122  
     {
 123  0
         this.mode = mode;
 124  0
     }
 125  
 
 126  
     /**
 127  
      * Modifier for the 'popupMode' attribute.
 128  
      * 
 129  
      * @param popupMode
 130  
      *            the new popupMode value to set
 131  
      */
 132  
     public void setPopupMode(boolean popupMode)
 133  
     {
 134  0
         this.popupMode = popupMode;
 135  0
     }
 136  
 
 137  
     /**
 138  
      * Modifier for the 'title' attribute.
 139  
      * 
 140  
      * @param title
 141  
      *            the new title value to set
 142  
      */
 143  
     public void setTitle(String title)
 144  
     {
 145  0
         this.title = title;
 146  0
     }
 147  
 
 148  
     /**
 149  
      * Modifier for the 'type' attribute.
 150  
      * 
 151  
      * @param type
 152  
      *            the new type value to set
 153  
      */
 154  
     public void setType(String type)
 155  
     {
 156  0
         this.type = type;
 157  0
     }
 158  
 }