View Javadoc

1   /*
2   The MIT License
3   
4   Copyright (c) 2004, The Codehaus
5   
6   Permission is hereby granted, free of charge, to any person obtaining a copy of
7   this software and associated documentation files (the "Software"), to deal in
8   the Software without restriction, including without limitation the rights to
9   use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10  of the Software, and to permit persons to whom the Software is furnished to do
11  so, subject to the following conditions:
12  
13  The above copyright notice and this permission notice shall be included in all
14  copies or substantial portions of the Software.
15  
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  SOFTWARE.
23   */
24  package org.codehaus.mojo.scmchangelog.changelog;
25  
26  import java.util.List;
27  
28  import org.codehaus.mojo.scmchangelog.tags.Tag;
29  
30  /**
31   * Represents a release of the product.
32   * A release is a list of log entries for a tag.
33   * @author ehsavoie
34   * @version $Id: Release.java 9282 2009-03-27 07:55:57Z ehsavoie $
35   *
36   * @see org.codehaus.mojo.scmchangelog.changelog.log.ScmLogEntry
37   * @see org.codehaus.mojo.scmchangelog.tags.Tag
38   */
39  public class Release
40  {
41  
42    /**
43     * Tag for this release.
44     */
45    private Tag tag;
46    /**
47     * List of SvnLogEntry for this release.
48     * @see org.codehaus.mojo.scmchangelog.changelog.log.ScmLogEntry
49     */
50    private List entries;
51  
52    /**
53     * Creates a new instance of Release
54     * @param releaseTag the tag corresponding to this release.
55     * @param logEntries the log entries for this release.
56     */
57    public Release( Tag releaseTag, List logEntries )
58    {
59      this.tag = releaseTag;
60      this.entries = logEntries;
61    }
62  
63    /**
64     * Return the log entries for his release.
65     * @return a list of ScmLogEntry for this release.
66     */
67    public List getEntries()
68    {
69      return this.entries;
70    }
71  
72    /**
73     * Return the tag for his release.
74     * @return the tag corresponding to this release.
75     */
76    public Tag getTag()
77    {
78      return this.tag;
79    }
80  }