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