View Javadoc

1   /**
2    * Copyright 2005-2006 the original author or authors.
3    *
4    * Licensed under the Gnu General Pubic License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with
6    * the License. You may obtain a copy of the License at
7    *
8    *      http://www.opensource.org/licenses/gpl-license.php
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13   * See the Gnu General Public License for more details.
14   */
15  package org.figure8.join.services.remoting.beans;
16  
17  import java.io.Serializable;
18  /**
19   * This is a thin bean aimed to be used by clients wanted to remotely supplied
20   * in <code>Deliverable</code>s. This object is not for providing remote view
21   * (some information of Deliverable are missing)
22   * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
23   * @version $Revision: 1.1 $
24   */
25  public class RemoteDeliverable implements Serializable{
26  
27     // Attributes ---------------------------------------------------------------
28  
29     /** Comments on deliverable creation. */
30     private String comments;
31     /** Deliverable version information */
32     private String versionInfo;
33  
34     /** Release this deliverable should be bind to */
35     private RemoteRelease release;
36     /** Type of this deliverable */
37     private RemoteDeliverableType deliverableType;
38  
39  
40     // Constructors -------------------------------------------------------------
41  
42     /**
43      * Creates a new instance of RemoteDeliverable using mandatory fields
44      * @param versionInfo Version information of deliverable
45      * @param comments Comments on deliverable creation
46      * @param release Release this deliverable should be bind to
47      * @param type The deliverableType of this deliverable
48      */
49     public RemoteDeliverable(String versionInfo, String comments, RemoteRelease release, RemoteDeliverableType type){
50        this.comments = comments;
51        this.versionInfo = versionInfo;
52        this.release = release;
53        this.deliverableType = type;
54     }
55  
56  
57     // Public -------------------------------------------------------------------
58  
59     /** @return Comments on deliverable creation. */
60     public String getComments(){
61        return comments;
62     }
63     /** @param comments Comments on deliverable creation */
64     public void setComments(String comments){
65        this.comments = comments;
66     }
67  
68     /** @return Version information for deliverable */
69     public String getVersionInfo(){
70        return versionInfo;
71     }
72     /** @param versionInfo Version information for deliverable */
73     public void setVersionInfo(String versionInfo){
74        this.versionInfo = versionInfo;
75     }
76  
77     /** @return Release this deliverable should be bind to */
78     public RemoteRelease getRelease(){
79        return release;
80     }
81     /** @param release Release to register delivery for */
82     public void setRelease(RemoteRelease release){
83        this.release = release;
84     }
85  
86     /** @return Type of this deliverable */
87     public RemoteDeliverableType getDeliverableType(){
88        return deliverableType;
89     }
90     /** @param deliverableType Type of this deliverable */
91     public void setDeliverableType(RemoteDeliverableType deliverableType){
92        this.deliverableType = deliverableType;
93     }
94  }