View Javadoc

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