View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.1 on 2011-09-18 11:21:46,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.continuum.model.system;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.continuum.model.project.ProjectScmRoot;
15  import org.apache.continuum.model.release.ContinuumReleaseResult;
16  import org.apache.continuum.model.repository.AbstractPurgeConfiguration;
17  import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
18  import org.apache.continuum.model.repository.LocalRepository;
19  import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
20  import org.apache.maven.continuum.model.project.BuildDefinition;
21  import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
22  import org.apache.maven.continuum.model.project.BuildQueue;
23  import org.apache.maven.continuum.model.project.BuildResult;
24  import org.apache.maven.continuum.model.project.ContinuumDatabase;
25  import org.apache.maven.continuum.model.project.Project;
26  import org.apache.maven.continuum.model.project.ProjectDependency;
27  import org.apache.maven.continuum.model.project.ProjectDeveloper;
28  import org.apache.maven.continuum.model.project.ProjectGroup;
29  import org.apache.maven.continuum.model.project.ProjectNotifier;
30  import org.apache.maven.continuum.model.project.Schedule;
31  import org.apache.maven.continuum.model.scm.ChangeFile;
32  import org.apache.maven.continuum.model.scm.ChangeSet;
33  import org.apache.maven.continuum.model.scm.ScmResult;
34  import org.apache.maven.continuum.project.ContinuumProjectState;
35  
36  /**
37   * 
38   *         Configures one method for notifying users/developers
39   * when a build breaks.
40   *       
41   * 
42   * @version $Revision$ $Date$
43   */
44  @SuppressWarnings( "all" )
45  public class NotificationAddress
46      implements java.io.Serializable
47  {
48  
49        //--------------------------/
50       //- Class/Member Variables -/
51      //--------------------------/
52  
53      /**
54       * The mechanism used to deliver notifications.
55       */
56      private String type = "mail";
57  
58      /**
59       * Field address.
60       */
61      private String address;
62  
63      /**
64       * Field configuration.
65       */
66      private java.util.Map configuration;
67  
68  
69        //-----------/
70       //- Methods -/
71      //-----------/
72  
73      /**
74       * Method addConfiguration.
75       * 
76       * @param key
77       * @param value
78       */
79      public void addConfiguration( Object key, String value )
80      {
81          getConfiguration().put( key, value );
82      } //-- void addConfiguration( Object, String )
83  
84      /**
85       * Get the address field.
86       * 
87       * @return String
88       */
89      public String getAddress()
90      {
91          return this.address;
92      } //-- String getAddress()
93  
94      /**
95       * Method getConfiguration.
96       * 
97       * @return Map
98       */
99      public java.util.Map getConfiguration()
100     {
101         if ( this.configuration == null )
102         {
103             this.configuration = new java.util.HashMap();
104         }
105 
106         return this.configuration;
107     } //-- java.util.Map getConfiguration()
108 
109     /**
110      * Get the mechanism used to deliver notifications.
111      * 
112      * @return String
113      */
114     public String getType()
115     {
116         return this.type;
117     } //-- String getType()
118 
119     /**
120      * Set the address field.
121      * 
122      * @param address
123      */
124     public void setAddress( String address )
125     {
126         this.address = address;
127     } //-- void setAddress( String )
128 
129     /**
130      * Set extended configuration specific to this notifier goes
131      * here.
132      * 
133      * @param configuration
134      */
135     public void setConfiguration( java.util.Map configuration )
136     {
137         this.configuration = configuration;
138     } //-- void setConfiguration( java.util.Map )
139 
140     /**
141      * Set the mechanism used to deliver notifications.
142      * 
143      * @param type
144      */
145     public void setType( String type )
146     {
147         this.type = type;
148     } //-- void setType( String )
149 
150 }