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