1 package org.apache.maven;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 /**
21 * @author <a href="mailto:bwalding@apache.org">Ben Walding</a>
22 * @version $Id: ContentNotice.java 170200 2005-05-15 06:24:19Z brett $
23 */
24 public class ContentNotice
25 {
26 public static final String INFO = "INFO";
27 public static final String WARN = "WARNING";
28 public static final String ERROR = "ERROR";
29
30 private String section;
31 private String message;
32 private String level;
33
34 public ContentNotice(String level, String section, String message)
35 {
36 this.level = level;
37 this.section = section;
38 this.message = message;
39 }
40 /**
41 * @return String
42 */
43 public String getMessage()
44 {
45 return message;
46 }
47
48 /**
49 * @return String
50 */
51 public String getSection()
52 {
53 return section;
54 }
55
56 /**
57 * @return String
58 */
59 public String getLevel()
60 {
61 return level;
62 }
63
64 public String toString()
65 {
66 return level + " : " + section + " : " + message;
67 }
68
69 }