1 /* 2 =================== DO NOT EDIT THIS FILE ==================== 3 4 Generated by Modello 2.4.0, 5 6 any modifications will be overwritten. 7 8 ============================================================== 9 */ 10 11 package org.apache.maven.tools.plugin.extractor.model; 12 13 /** 14 * Root element of a script-based mojo's plugin metadata bindings. 15 * 16 * @version $Revision$ $Date$ 17 */ 18 @SuppressWarnings( "all" ) 19 public class PluginMetadata 20 implements java.io.Serializable 21 { 22 23 //--------------------------/ 24 //- Class/Member Variables -/ 25 //--------------------------/ 26 27 /** 28 * Field mojos. 29 */ 30 private java.util.List<Mojo> mojos; 31 32 /** 33 * Field modelEncoding. 34 */ 35 private String modelEncoding = "UTF-8"; 36 37 38 //-----------/ 39 //- Methods -/ 40 //-----------/ 41 42 /** 43 * Method addMojo. 44 * 45 * @param mojo a mojo object. 46 */ 47 public void addMojo( Mojo mojo ) 48 { 49 getMojos().add( mojo ); 50 } //-- void addMojo( Mojo ) 51 52 /** 53 * Get the modelEncoding field. 54 * 55 * @return String 56 */ 57 public String getModelEncoding() 58 { 59 return this.modelEncoding; 60 } //-- String getModelEncoding() 61 62 /** 63 * Method getMojos. 64 * 65 * @return List 66 */ 67 public java.util.List<Mojo> getMojos() 68 { 69 if ( this.mojos == null ) 70 { 71 this.mojos = new java.util.ArrayList<Mojo>(); 72 } 73 74 return this.mojos; 75 } //-- java.util.List<Mojo> getMojos() 76 77 /** 78 * Method removeMojo. 79 * 80 * @param mojo a mojo object. 81 */ 82 public void removeMojo( Mojo mojo ) 83 { 84 getMojos().remove( mojo ); 85 } //-- void removeMojo( Mojo ) 86 87 /** 88 * Set the modelEncoding field. 89 * 90 * @param modelEncoding a modelEncoding object. 91 */ 92 public void setModelEncoding( String modelEncoding ) 93 { 94 this.modelEncoding = modelEncoding; 95 } //-- void setModelEncoding( String ) 96 97 /** 98 * Set the list of mojos contained in the accompanying script. 99 * 100 * @param mojos a mojos object. 101 */ 102 public void setMojos( java.util.List<Mojo> mojos ) 103 { 104 this.mojos = mojos; 105 } //-- void setMojos( java.util.List ) 106 107 }