View Javadoc

1   /**
2    * Copyright 2011-2013 The Kuali Foundation Licensed under the Educational
3    * Community License, Version 2.0 (the "License"); you may not use this file
4    * except in compliance with the License. You may obtain a copy of the License
5    * at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12   * License for the specific language governing permissions and limitations under
13   * the License.
14   */
15  package org.kuali.mobility.shared.entity;
16  
17  /**
18   *
19   * @author xinfeng
20   */
21  public class ToolMessage {
22      private ToolMessageType type;
23      private String label;
24      private String description;
25      
26      public String getLabel(){
27          return label;
28      }
29      
30      public void setLabel(String l) {
31          label = l;
32      }
33      
34      public String getDescription() {
35          return description;
36      }
37      
38      public void setDescription(String d) {
39          description = d;
40      }
41      
42      public int getTypeCode() {
43          if (null!=getType())
44              return getType().getCode();
45          else {
46              return -1;
47          }
48      }
49      
50      public void setType(ToolMessageType t) {
51          type = t;
52      }
53  
54      /**
55       * @return the type
56       */
57      public ToolMessageType getType() {
58          return type;
59      }
60      
61  }