001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.8.1, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.maven.plugin.tools.model; 007 008/** 009 * Root element of a script-based mojo's plugin metadata bindings. 010 * 011 * @version $Revision: 907040 $ $Date: 2014-04-27 09:50:12 +0000 (Sun, 27 Apr 2014) $ 012 */ 013@SuppressWarnings( "all" ) 014public class PluginMetadata 015 implements java.io.Serializable 016{ 017 018 //--------------------------/ 019 //- Class/Member Variables -/ 020 //--------------------------/ 021 022 /** 023 * Field mojos. 024 */ 025 private java.util.List<Mojo> mojos; 026 027 /** 028 * Field modelEncoding. 029 */ 030 private String modelEncoding = "UTF-8"; 031 032 033 //-----------/ 034 //- Methods -/ 035 //-----------/ 036 037 /** 038 * Method addMojo. 039 * 040 * @param mojo 041 */ 042 public void addMojo( Mojo mojo ) 043 { 044 getMojos().add( mojo ); 045 } //-- void addMojo( Mojo ) 046 047 /** 048 * Get the modelEncoding field. 049 * 050 * @return String 051 */ 052 public String getModelEncoding() 053 { 054 return this.modelEncoding; 055 } //-- String getModelEncoding() 056 057 /** 058 * Method getMojos. 059 * 060 * @return List 061 */ 062 public java.util.List<Mojo> getMojos() 063 { 064 if ( this.mojos == null ) 065 { 066 this.mojos = new java.util.ArrayList<Mojo>(); 067 } 068 069 return this.mojos; 070 } //-- java.util.List<Mojo> getMojos() 071 072 /** 073 * Method removeMojo. 074 * 075 * @param mojo 076 */ 077 public void removeMojo( Mojo mojo ) 078 { 079 getMojos().remove( mojo ); 080 } //-- void removeMojo( Mojo ) 081 082 /** 083 * Set the modelEncoding field. 084 * 085 * @param modelEncoding 086 */ 087 public void setModelEncoding( String modelEncoding ) 088 { 089 this.modelEncoding = modelEncoding; 090 } //-- void setModelEncoding( String ) 091 092 /** 093 * Set the list of mojos contained in the accompanying script. 094 * 095 * @param mojos 096 */ 097 public void setMojos( java.util.List<Mojo> mojos ) 098 { 099 this.mojos = mojos; 100 } //-- void setMojos( java.util.List ) 101 102}