Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/aendvari/tethys/tag/notices/NoticesMap.java


1   /*
2    * NoticesMap.java
3    *
4    * Copyright (c) 2001, 2002 Aendvari, Ltd. All Rights Reserved.
5    *
6    * See the file LICENSE for terms of use.
7    *
8    */
9   
10  package com.aendvari.tethys.tag.notices;
11  
12  import java.util.HashMap;
13  
14  import com.aendvari.common.notices.*;
15  
16  /**
17   * <p>This class is used to hold notice data.</p>
18   *
19   * @author  Scott Milne
20   *
21   */
22  
23  public class NoticesMap
24  {
25    /* Variables */
26  
27  
28    /** Contains the group of notifications. */
29    protected Notices notices;
30  
31    /** The translator to convert notifications to text. */
32    protected NoticeTranslator translator;
33  
34  
35    /* Constructors */
36  
37  
38    /**
39     * Constructs an empty {@link NoticesMap}.
40     *
41     */
42  
43    public NoticesMap()
44    {
45      notices = new Notices();
46      translator = null;
47    }
48  
49    /**
50     * Constructs a {@link NoticesMap}.
51     *
52     * @param    setNotices          The {@link Notices} to store.
53     * @param    setTranslator        The {@link NoticeTranslator} to convert notifications.
54     *
55     */
56  
57    public NoticesMap(Notices setNotices, NoticeTranslator setTranslator)
58    {
59      notices = setNotices;
60      translator = setTranslator;
61    }
62  
63    /* Accessors */
64  
65    public Notices getNotices() { return notices; }
66    public void setNotices(Notices setNotices) { notices = setNotices; }
67  
68    public NoticeTranslator getTranslator() { return translator; }
69    public void setTranslator(NoticeTranslator setTranslator) { translator = setTranslator; }
70  }
71