View Javadoc

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