Coverage Report - org.apache.maven.model.CiManagement
 
Classes in this File Line Coverage Branch Coverage Complexity
CiManagement
5 %
1/20
0 %
0/6
0
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.0.1 on 2009-09-09 03:04:48,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.model;
 9  
 
 10  
 /**
 11  
  * 
 12  
  *         
 13  
  *         The <code>&lt;CiManagement&gt;</code> element contains
 14  
  * informations required to the
 15  
  *         continuous integration system of the project.
 16  
  *         
 17  
  *       
 18  
  * 
 19  
  * @version $Revision$ $Date$
 20  
  */
 21  6
 public class CiManagement
 22  
     implements java.io.Serializable
 23  
 {
 24  
 
 25  
       //--------------------------/
 26  
      //- Class/Member Variables -/
 27  
     //--------------------------/
 28  
 
 29  
     /**
 30  
      * 
 31  
      *             
 32  
      *             The name of the continuous integration system,
 33  
      * e.g. <code>continuum</code>.
 34  
      *             
 35  
      *           
 36  
      */
 37  
     private String system;
 38  
 
 39  
     /**
 40  
      * URL for the continuous integration system used by the
 41  
      * project if it has a web
 42  
      *             interface.
 43  
      */
 44  
     private String url;
 45  
 
 46  
     /**
 47  
      * Field notifiers.
 48  
      */
 49  
     private java.util.List<Notifier> notifiers;
 50  
 
 51  
 
 52  
       //-----------/
 53  
      //- Methods -/
 54  
     //-----------/
 55  
 
 56  
     /**
 57  
      * Method addNotifier.
 58  
      * 
 59  
      * @param notifier
 60  
      */
 61  
     public void addNotifier( Notifier notifier )
 62  
     {
 63  0
         if ( !(notifier instanceof Notifier) )
 64  
         {
 65  0
             throw new ClassCastException( "CiManagement.addNotifiers(notifier) parameter must be instanceof " + Notifier.class.getName() );
 66  
         }
 67  0
         getNotifiers().add( notifier );
 68  0
     } //-- void addNotifier( Notifier )
 69  
 
 70  
     /**
 71  
      * Method getNotifiers.
 72  
      * 
 73  
      * @return List
 74  
      */
 75  
     public java.util.List<Notifier> getNotifiers()
 76  
     {
 77  0
         if ( this.notifiers == null )
 78  
         {
 79  0
             this.notifiers = new java.util.ArrayList<Notifier>();
 80  
         }
 81  
 
 82  0
         return this.notifiers;
 83  
     } //-- java.util.List<Notifier> getNotifiers()
 84  
 
 85  
     /**
 86  
      * Get the name of the continuous integration system, e.g.
 87  
      * <code>continuum</code>.
 88  
      * 
 89  
      * @return String
 90  
      */
 91  
     public String getSystem()
 92  
     {
 93  0
         return this.system;
 94  
     } //-- String getSystem()
 95  
 
 96  
     /**
 97  
      * Get uRL for the continuous integration system used by the
 98  
      * project if it has a web
 99  
      *             interface.
 100  
      * 
 101  
      * @return String
 102  
      */
 103  
     public String getUrl()
 104  
     {
 105  0
         return this.url;
 106  
     } //-- String getUrl()
 107  
 
 108  
     /**
 109  
      * Method removeNotifier.
 110  
      * 
 111  
      * @param notifier
 112  
      */
 113  
     public void removeNotifier( Notifier notifier )
 114  
     {
 115  0
         if ( !(notifier instanceof Notifier) )
 116  
         {
 117  0
             throw new ClassCastException( "CiManagement.removeNotifiers(notifier) parameter must be instanceof " + Notifier.class.getName() );
 118  
         }
 119  0
         getNotifiers().remove( notifier );
 120  0
     } //-- void removeNotifier( Notifier )
 121  
 
 122  
     /**
 123  
      * Set configuration for notifying developers/users when a
 124  
      * build is unsuccessful,
 125  
      *             including user information and notification
 126  
      * mode.
 127  
      * 
 128  
      * @param notifiers
 129  
      */
 130  
     public void setNotifiers( java.util.List<Notifier> notifiers )
 131  
     {
 132  0
         this.notifiers = notifiers;
 133  0
     } //-- void setNotifiers( java.util.List )
 134  
 
 135  
     /**
 136  
      * Set the name of the continuous integration system, e.g.
 137  
      * <code>continuum</code>.
 138  
      * 
 139  
      * @param system
 140  
      */
 141  
     public void setSystem( String system )
 142  
     {
 143  0
         this.system = system;
 144  0
     } //-- void setSystem( String )
 145  
 
 146  
     /**
 147  
      * Set uRL for the continuous integration system used by the
 148  
      * project if it has a web
 149  
      *             interface.
 150  
      * 
 151  
      * @param url
 152  
      */
 153  
     public void setUrl( String url )
 154  
     {
 155  0
         this.url = url;
 156  0
     } //-- void setUrl( String )
 157  
 
 158  
 
 159  
 }