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.toolchain.model;
007
008 /**
009 *
010 * The <code><toolchains></code> element is the root
011 * of the descriptor.
012 * The following table lists all of the possible child
013 * elements.
014 *
015 *
016 * @version $Revision$ $Date$
017 */
018 @SuppressWarnings( "all" )
019 public class PersistedToolchains
020 implements java.io.Serializable
021 {
022
023 //--------------------------/
024 //- Class/Member Variables -/
025 //--------------------------/
026
027 /**
028 * Field toolchains.
029 */
030 private java.util.List<ToolchainModel> toolchains;
031
032 /**
033 * Field modelEncoding.
034 */
035 private String modelEncoding = "UTF-8";
036
037
038 //-----------/
039 //- Methods -/
040 //-----------/
041
042 /**
043 * Method addToolchain.
044 *
045 * @param toolchainModel
046 */
047 public void addToolchain( ToolchainModel toolchainModel )
048 {
049 getToolchains().add( toolchainModel );
050 } //-- void addToolchain( ToolchainModel )
051
052 /**
053 * Get the modelEncoding field.
054 *
055 * @return String
056 */
057 public String getModelEncoding()
058 {
059 return this.modelEncoding;
060 } //-- String getModelEncoding()
061
062 /**
063 * Method getToolchains.
064 *
065 * @return List
066 */
067 public java.util.List<ToolchainModel> getToolchains()
068 {
069 if ( this.toolchains == null )
070 {
071 this.toolchains = new java.util.ArrayList<ToolchainModel>();
072 }
073
074 return this.toolchains;
075 } //-- java.util.List<ToolchainModel> getToolchains()
076
077 /**
078 * Method removeToolchain.
079 *
080 * @param toolchainModel
081 */
082 public void removeToolchain( ToolchainModel toolchainModel )
083 {
084 getToolchains().remove( toolchainModel );
085 } //-- void removeToolchain( ToolchainModel )
086
087 /**
088 * Set the modelEncoding field.
089 *
090 * @param modelEncoding
091 */
092 public void setModelEncoding( String modelEncoding )
093 {
094 this.modelEncoding = modelEncoding;
095 } //-- void setModelEncoding( String )
096
097 /**
098 * Set the toolchain definition.
099 *
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 }