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