View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-02-24 03:31:05,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.toolchain.model;
9   
10  /**
11   * 
12   *          The <code>&lt;toolchains&gt;</code> element is the root
13   * of the descriptor.
14   *          The following table lists all of the possible child
15   * elements.
16   *             
17   * 
18   * @version $Revision$ $Date$
19   */
20  @SuppressWarnings( "all" )
21  public class PersistedToolchains
22      implements java.io.Serializable
23  {
24  
25        //--------------------------/
26       //- Class/Member Variables -/
27      //--------------------------/
28  
29      /**
30       * Field toolchains.
31       */
32      private java.util.List<ToolchainModel> toolchains;
33  
34      /**
35       * Field modelEncoding.
36       */
37      private String modelEncoding = "UTF-8";
38  
39  
40        //-----------/
41       //- Methods -/
42      //-----------/
43  
44      /**
45       * Method addToolchain.
46       * 
47       * @param toolchainModel
48       */
49      public void addToolchain( ToolchainModel toolchainModel )
50      {
51          getToolchains().add( toolchainModel );
52      } //-- void addToolchain( ToolchainModel )
53  
54      /**
55       * Get the modelEncoding field.
56       * 
57       * @return String
58       */
59      public String getModelEncoding()
60      {
61          return this.modelEncoding;
62      } //-- String getModelEncoding()
63  
64      /**
65       * Method getToolchains.
66       * 
67       * @return List
68       */
69      public java.util.List<ToolchainModel> getToolchains()
70      {
71          if ( this.toolchains == null )
72          {
73              this.toolchains = new java.util.ArrayList<ToolchainModel>();
74          }
75  
76          return this.toolchains;
77      } //-- java.util.List<ToolchainModel> getToolchains()
78  
79      /**
80       * Method removeToolchain.
81       * 
82       * @param toolchainModel
83       */
84      public void removeToolchain( ToolchainModel toolchainModel )
85      {
86          getToolchains().remove( toolchainModel );
87      } //-- void removeToolchain( ToolchainModel )
88  
89      /**
90       * Set the modelEncoding field.
91       * 
92       * @param modelEncoding
93       */
94      public void setModelEncoding( String modelEncoding )
95      {
96          this.modelEncoding = modelEncoding;
97      } //-- void setModelEncoding( String )
98  
99      /**
100      * Set the toolchain definition.
101      * 
102      * @param toolchains
103      */
104     public void setToolchains( java.util.List<ToolchainModel> toolchains )
105     {
106         this.toolchains = toolchains;
107     } //-- void setToolchains( java.util.List )
108 
109 }