001 // =================== DO NOT EDIT THIS FILE ==================== 002 // Generated by Modello 1.7, 003 // any modifications will be overwritten. 004 // ============================================================== 005 006 package org.apache.maven.plugin.descriptor.model; 007 008 /** 009 * Root element of the <code>plugin.xml</code> file. 010 * 011 * @version $Revision: 855142 $ $Date: 2013-03-20 00:55:13 +0000 (Wed, 20 Mar 2013) $ 012 */ 013 @SuppressWarnings( "all" ) 014 public class PluginDescriptor 015 implements java.io.Serializable 016 { 017 018 //--------------------------/ 019 //- Class/Member Variables -/ 020 //--------------------------/ 021 022 /** 023 * Description of the plugin. 024 */ 025 private String description; 026 027 /** 028 * The group id of the plugin. 029 */ 030 private String groupId; 031 032 /** 033 * The artifact id of the plugin. 034 */ 035 private String artifactId; 036 037 /** 038 * The version of the plugin. 039 */ 040 private String version; 041 042 /** 043 * Field goalPrefix. 044 */ 045 private String goalPrefix; 046 047 /** 048 * Field isolatedRealm. 049 */ 050 private boolean isolatedRealm = false; 051 052 /** 053 * Field inheritedByDefault. 054 */ 055 private boolean inheritedByDefault = true; 056 057 /** 058 * Field mojos. 059 */ 060 private java.util.List<MojoDescriptor> mojos; 061 062 /** 063 * Field dependencies. 064 */ 065 private java.util.List<Dependency> dependencies; 066 067 /** 068 * Field modelEncoding. 069 */ 070 private String modelEncoding = "UTF-8"; 071 072 073 //-----------/ 074 //- Methods -/ 075 //-----------/ 076 077 /** 078 * Method addDependency. 079 * 080 * @param dependency 081 */ 082 public void addDependency( Dependency dependency ) 083 { 084 getDependencies().add( dependency ); 085 } //-- void addDependency( Dependency ) 086 087 /** 088 * Method addMojo. 089 * 090 * @param mojoDescriptor 091 */ 092 public void addMojo( MojoDescriptor mojoDescriptor ) 093 { 094 getMojos().add( mojoDescriptor ); 095 } //-- void addMojo( MojoDescriptor ) 096 097 /** 098 * Get the artifact id of the plugin. 099 * 100 * @return String 101 */ 102 public String getArtifactId() 103 { 104 return this.artifactId; 105 } //-- String getArtifactId() 106 107 /** 108 * Method getDependencies. 109 * 110 * @return List 111 */ 112 public java.util.List<Dependency> getDependencies() 113 { 114 if ( this.dependencies == null ) 115 { 116 this.dependencies = new java.util.ArrayList<Dependency>(); 117 } 118 119 return this.dependencies; 120 } //-- java.util.List<Dependency> getDependencies() 121 122 /** 123 * Get description of the plugin. 124 * 125 * @return String 126 */ 127 public String getDescription() 128 { 129 return this.description; 130 } //-- String getDescription() 131 132 /** 133 * Get the goalPrefix field. 134 * 135 * @return String 136 */ 137 public String getGoalPrefix() 138 { 139 return this.goalPrefix; 140 } //-- String getGoalPrefix() 141 142 /** 143 * Get the group id of the plugin. 144 * 145 * @return String 146 */ 147 public String getGroupId() 148 { 149 return this.groupId; 150 } //-- String getGroupId() 151 152 /** 153 * Get the modelEncoding field. 154 * 155 * @return String 156 */ 157 public String getModelEncoding() 158 { 159 return this.modelEncoding; 160 } //-- String getModelEncoding() 161 162 /** 163 * Method getMojos. 164 * 165 * @return List 166 */ 167 public java.util.List<MojoDescriptor> getMojos() 168 { 169 if ( this.mojos == null ) 170 { 171 this.mojos = new java.util.ArrayList<MojoDescriptor>(); 172 } 173 174 return this.mojos; 175 } //-- java.util.List<MojoDescriptor> getMojos() 176 177 /** 178 * Get the version of the plugin. 179 * 180 * @return String 181 */ 182 public String getVersion() 183 { 184 return this.version; 185 } //-- String getVersion() 186 187 /** 188 * Get the inheritedByDefault field. 189 * 190 * @return boolean 191 */ 192 public boolean isInheritedByDefault() 193 { 194 return this.inheritedByDefault; 195 } //-- boolean isInheritedByDefault() 196 197 /** 198 * Get the isolatedRealm field. 199 * 200 * @return boolean 201 */ 202 public boolean isIsolatedRealm() 203 { 204 return this.isolatedRealm; 205 } //-- boolean isIsolatedRealm() 206 207 /** 208 * Method removeDependency. 209 * 210 * @param dependency 211 */ 212 public void removeDependency( Dependency dependency ) 213 { 214 getDependencies().remove( dependency ); 215 } //-- void removeDependency( Dependency ) 216 217 /** 218 * Method removeMojo. 219 * 220 * @param mojoDescriptor 221 */ 222 public void removeMojo( MojoDescriptor mojoDescriptor ) 223 { 224 getMojos().remove( mojoDescriptor ); 225 } //-- void removeMojo( MojoDescriptor ) 226 227 /** 228 * Set the artifact id of the plugin. 229 * 230 * @param artifactId 231 */ 232 public void setArtifactId( String artifactId ) 233 { 234 this.artifactId = artifactId; 235 } //-- void setArtifactId( String ) 236 237 /** 238 * Set a set of dependencies which the plugin requires in order 239 * to function. This enables the plugin to function 240 * independently of its POM (or at least to declare 241 * the libraries it needs to run). 242 * 243 * @param dependencies 244 */ 245 public void setDependencies( java.util.List<Dependency> dependencies ) 246 { 247 this.dependencies = dependencies; 248 } //-- void setDependencies( java.util.List ) 249 250 /** 251 * Set description of the plugin. 252 * 253 * @param description 254 */ 255 public void setDescription( String description ) 256 { 257 this.description = description; 258 } //-- void setDescription( String ) 259 260 /** 261 * Set the goalPrefix field. 262 * 263 * @param goalPrefix 264 */ 265 public void setGoalPrefix( String goalPrefix ) 266 { 267 this.goalPrefix = goalPrefix; 268 } //-- void setGoalPrefix( String ) 269 270 /** 271 * Set the group id of the plugin. 272 * 273 * @param groupId 274 */ 275 public void setGroupId( String groupId ) 276 { 277 this.groupId = groupId; 278 } //-- void setGroupId( String ) 279 280 /** 281 * Set the inheritedByDefault field. 282 * 283 * @param inheritedByDefault 284 */ 285 public void setInheritedByDefault( boolean inheritedByDefault ) 286 { 287 this.inheritedByDefault = inheritedByDefault; 288 } //-- void setInheritedByDefault( boolean ) 289 290 /** 291 * Set the isolatedRealm field. 292 * 293 * @param isolatedRealm 294 */ 295 public void setIsolatedRealm( boolean isolatedRealm ) 296 { 297 this.isolatedRealm = isolatedRealm; 298 } //-- void setIsolatedRealm( boolean ) 299 300 /** 301 * Set the modelEncoding field. 302 * 303 * @param modelEncoding 304 */ 305 public void setModelEncoding( String modelEncoding ) 306 { 307 this.modelEncoding = modelEncoding; 308 } //-- void setModelEncoding( String ) 309 310 /** 311 * Set description of each Mojo provided by the plugin. 312 * 313 * @param mojos 314 */ 315 public void setMojos( java.util.List<MojoDescriptor> mojos ) 316 { 317 this.mojos = mojos; 318 } //-- void setMojos( java.util.List ) 319 320 /** 321 * Set the version of the plugin. 322 * 323 * @param version 324 */ 325 public void setVersion( String version ) 326 { 327 this.version = version; 328 } //-- void setVersion( String ) 329 330 }