1 /* 2 =================== DO NOT EDIT THIS FILE ==================== 3 Generated by Modello 1.0.1 on 2009-07-11 18:48:37, 4 any modifications will be overwritten. 5 ============================================================== 6 */ 7 8 package org.apache.maven.model; 9 10 /** 11 * 12 * 13 * The <code><CiManagement></code> element contains 14 * informations required to the 15 * continuous integration system of the project. 16 * 17 * 18 * 19 * @version $Revision$ $Date$ 20 */ 21 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 if ( !(notifier instanceof Notifier) ) 64 { 65 throw new ClassCastException( "CiManagement.addNotifiers(notifier) parameter must be instanceof " + Notifier.class.getName() ); 66 } 67 getNotifiers().add( notifier ); 68 } //-- void addNotifier( Notifier ) 69 70 /** 71 * Method getNotifiers. 72 * 73 * @return List 74 */ 75 public java.util.List<Notifier> getNotifiers() 76 { 77 if ( this.notifiers == null ) 78 { 79 this.notifiers = new java.util.ArrayList<Notifier>(); 80 } 81 82 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 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 return this.url; 106 } //-- String getUrl() 107 108 /** 109 * Method removeNotifier. 110 * 111 * @param notifier 112 */ 113 public void removeNotifier( Notifier notifier ) 114 { 115 if ( !(notifier instanceof Notifier) ) 116 { 117 throw new ClassCastException( "CiManagement.removeNotifiers(notifier) parameter must be instanceof " + Notifier.class.getName() ); 118 } 119 getNotifiers().remove( notifier ); 120 } //-- 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 this.notifiers = notifiers; 133 } //-- 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 this.system = system; 144 } //-- 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 this.url = url; 156 } //-- void setUrl( String ) 157 158 159 }