001/*
002 Licensed to the Apache Software Foundation (ASF) under one
003 or more contributor license agreements.  See the NOTICE file
004 distributed with this work for additional information
005 regarding copyright ownership.  The ASF licenses this file
006 to you under the Apache License, Version 2.0 (the
007 "License"); you may not use this file except in compliance
008 with the License.  You may obtain a copy of the License at
009 
010     http://www.apache.org/licenses/LICENSE-2.0
011 
012 Unless required by applicable law or agreed to in writing,
013 software distributed under the License is distributed on an
014 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 KIND, either express or implied.  See the License for the
016 specific language governing permissions and limitations
017 under the License.
018 =================== DO NOT EDIT THIS FILE ====================
019 Generated by Modello 2.5.1,
020 any modifications will be overwritten.
021 ==============================================================
022 */
023
024package org.apache.maven.tools.plugin.extractor.model;
025
026/**
027 * Root element of a script-based mojo's plugin metadata bindings.
028 * 
029 * @version $Revision$ $Date$
030 */
031@SuppressWarnings( "all" )
032public class PluginMetadata
033    implements java.io.Serializable
034{
035
036      //--------------------------/
037     //- Class/Member Variables -/
038    //--------------------------/
039
040    /**
041     * Field mojos.
042     */
043    private java.util.List<Mojo> mojos;
044
045    /**
046     * Field modelEncoding.
047     */
048    private String modelEncoding = "UTF-8";
049
050
051      //-----------/
052     //- Methods -/
053    //-----------/
054
055    /**
056     * Method addMojo.
057     * 
058     * @param mojo a mojo object.
059     */
060    public void addMojo( Mojo mojo )
061    {
062        getMojos().add( mojo );
063    } //-- void addMojo( Mojo )
064
065    /**
066     * Get the modelEncoding field.
067     * 
068     * @return String
069     */
070    public String getModelEncoding()
071    {
072        return this.modelEncoding;
073    } //-- String getModelEncoding()
074
075    /**
076     * Method getMojos.
077     * 
078     * @return List
079     */
080    public java.util.List<Mojo> getMojos()
081    {
082        if ( this.mojos == null )
083        {
084            this.mojos = new java.util.ArrayList<Mojo>();
085        }
086
087        return this.mojos;
088    } //-- java.util.List<Mojo> getMojos()
089
090    /**
091     * Method removeMojo.
092     * 
093     * @param mojo a mojo object.
094     */
095    public void removeMojo( Mojo mojo )
096    {
097        getMojos().remove( mojo );
098    } //-- void removeMojo( Mojo )
099
100    /**
101     * Set the modelEncoding field.
102     * 
103     * @param modelEncoding a modelEncoding object.
104     */
105    public void setModelEncoding( String modelEncoding )
106    {
107        this.modelEncoding = modelEncoding;
108    } //-- void setModelEncoding( String )
109
110    /**
111     * Set the list of mojos contained in the accompanying script.
112     * 
113     * @param mojos a mojos object.
114     */
115    public void setMojos( java.util.List<Mojo> mojos )
116    {
117        this.mojos = mojos;
118    } //-- void setMojos( java.util.List )
119
120}