View Javadoc

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