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