View Javadoc

1   package org.apache.maven;
2   
3   /* ====================================================================
4    *   Copyright 2001-2004 The Apache Software Foundation.
5    *
6    *   Licensed under the Apache License, Version 2.0 (the "License");
7    *   you may not use this file except in compliance with the License.
8    *   You may obtain a copy of the License at
9    *
10   *       http://www.apache.org/licenses/LICENSE-2.0
11   *
12   *   Unless required by applicable law or agreed to in writing, software
13   *   distributed under the License is distributed on an "AS IS" BASIS,
14   *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   *   See the License for the specific language governing permissions and
16   *   limitations under the License.
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  }