All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.maven.model.MailingList Maven / Gradle / Ivy

There is a newer version: 3.0.0-alpha-3
Show newest version
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.1.2,
// any modifications will be overwritten.
// ==============================================================

package org.apache.maven.model;

/**
 * This element describes all of the mailing lists associated with
 * a project. The
 *         auto-generated site references this information.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class MailingList
    implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * 
     *             
     *             The name of the mailing list.
     *             
     *           
     */
    private String name;

    /**
     * 
     *             
     *             The email address or link that can be used to
     * subscribe to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     *             
     *           
     */
    private String subscribe;

    /**
     * 
     *             
     *             The email address or link that can be used to
     * unsubscribe to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     *             
     *           
     */
    private String unsubscribe;

    /**
     * 
     *             
     *             The email address or link that can be used to
     * post to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     *             
     *           
     */
    private String post;

    /**
     * The link to a URL where you can browse the mailing list
     * archive.
     */
    private String archive;

    /**
     * Field otherArchives.
     */
    private java.util.List otherArchives;

    /**
     * Field locations.
     */
    private java.util.Map locations;

    /**
     * Field location.
     */
    private InputLocation location;

    /**
     * Field nameLocation.
     */
    private InputLocation nameLocation;

    /**
     * Field subscribeLocation.
     */
    private InputLocation subscribeLocation;

    /**
     * Field unsubscribeLocation.
     */
    private InputLocation unsubscribeLocation;

    /**
     * Field postLocation.
     */
    private InputLocation postLocation;

    /**
     * Field archiveLocation.
     */
    private InputLocation archiveLocation;

    /**
     * Field otherArchivesLocation.
     */
    private InputLocation otherArchivesLocation;


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method addOtherArchive.
     * 
     * @param string a string object.
     */
    public void addOtherArchive( String string )
    {
        getOtherArchives().add( string );
    } //-- void addOtherArchive( String )

    /**
     * Method clone.
     * 
     * @return MailingList
     */
    public MailingList clone()
    {
        try
        {
            MailingList copy = (MailingList) super.clone();

            if ( this.otherArchives != null )
            {
                copy.otherArchives = new java.util.ArrayList();
                copy.otherArchives.addAll( this.otherArchives );
            }

            if ( copy.locations != null )
            {
                copy.locations = new java.util.LinkedHashMap( copy.locations );
            }

            return copy;
        }
        catch ( java.lang.Exception ex )
        {
            throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
                + " does not support clone()" ).initCause( ex );
        }
    } //-- MailingList clone()

    /**
     * Get the link to a URL where you can browse the mailing list
     * archive.
     * 
     * @return String
     */
    public String getArchive()
    {
        return this.archive;
    } //-- String getArchive()

    /**
     * 
     * 
     * @param key a key object.
     * @return InputLocation
     */
    public InputLocation getLocation( Object key )
    {
        if ( key instanceof String )
        {
            switch ( ( String ) key )
            {
                case "" :
                {
                    return this.location;
                }
                case "name" :
                {
                    return nameLocation;
                }
                case "subscribe" :
                {
                    return subscribeLocation;
                }
                case "unsubscribe" :
                {
                    return unsubscribeLocation;
                }
                case "post" :
                {
                    return postLocation;
                }
                case "archive" :
                {
                    return archiveLocation;
                }
                case "otherArchives" :
                {
                    return otherArchivesLocation;
                }
                default :
                {
                    return getOtherLocation( key );
                }
                }
            }
            else
            {
                return getOtherLocation( key );
            }
    } //-- InputLocation getLocation( Object )

    /**
     * Get the name of the mailing list.
     * 
     * @return String
     */
    public String getName()
    {
        return this.name;
    } //-- String getName()

    /**
     * Method getOtherArchives.
     * 
     * @return List
     */
    public java.util.List getOtherArchives()
    {
        if ( this.otherArchives == null )
        {
            this.otherArchives = new java.util.ArrayList();
        }

        return this.otherArchives;
    } //-- java.util.List getOtherArchives()

    /**
     * 
     * 
     * @param key a key object.
     * @param location a location object.
     */
    public void setLocation( Object key, InputLocation location )
    {
        if ( key instanceof String )
        {
            switch ( ( String ) key )
            {
                case "" :
                {
                    this.location = location;
                    return;
                }
                case "name" :
                {
                    nameLocation = location;
                    return;
                }
                case "subscribe" :
                {
                    subscribeLocation = location;
                    return;
                }
                case "unsubscribe" :
                {
                    unsubscribeLocation = location;
                    return;
                }
                case "post" :
                {
                    postLocation = location;
                    return;
                }
                case "archive" :
                {
                    archiveLocation = location;
                    return;
                }
                case "otherArchives" :
                {
                    otherArchivesLocation = location;
                    return;
                }
                default :
                {
                    setOtherLocation( key, location );
                    return;
                }
            }
        }
        else
        {
            setOtherLocation( key, location );
        }
    } //-- void setLocation( Object, InputLocation )

    /**
     * 
     * 
     * @param key a key object.
     * @param location a location object.
     */
    public void setOtherLocation( Object key, InputLocation location )
    {
        if ( location != null )
        {
            if ( this.locations == null )
            {
                this.locations = new java.util.LinkedHashMap();
            }
            this.locations.put( key, location );
        }
    } //-- void setOtherLocation( Object, InputLocation )

    /**
     * 
     * 
     * @param key a key object.
     * @return InputLocation
     */
    private InputLocation getOtherLocation( Object key )
    {
        return ( locations != null ) ? locations.get( key ) : null;
    } //-- InputLocation getOtherLocation( Object )

    /**
     * Get the email address or link that can be used to post to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     * 
     * @return String
     */
    public String getPost()
    {
        return this.post;
    } //-- String getPost()

    /**
     * Get the email address or link that can be used to subscribe
     * to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     * 
     * @return String
     */
    public String getSubscribe()
    {
        return this.subscribe;
    } //-- String getSubscribe()

    /**
     * Get the email address or link that can be used to
     * unsubscribe to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     * 
     * @return String
     */
    public String getUnsubscribe()
    {
        return this.unsubscribe;
    } //-- String getUnsubscribe()

    /**
     * Method removeOtherArchive.
     * 
     * @param string a string object.
     */
    public void removeOtherArchive( String string )
    {
        getOtherArchives().remove( string );
    } //-- void removeOtherArchive( String )

    /**
     * Set the link to a URL where you can browse the mailing list
     * archive.
     * 
     * @param archive a archive object.
     */
    public void setArchive( String archive )
    {
        this.archive = archive;
    } //-- void setArchive( String )

    /**
     * Set the name of the mailing list.
     * 
     * @param name a name object.
     */
    public void setName( String name )
    {
        this.name = name;
    } //-- void setName( String )

    /**
     * Set the link to alternate URLs where you can browse the list
     * archive.
     * 
     * @param otherArchives a otherArchives object.
     */
    public void setOtherArchives( java.util.List otherArchives )
    {
        this.otherArchives = otherArchives;
    } //-- void setOtherArchives( java.util.List )

    /**
     * Set the email address or link that can be used to post to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     * 
     * @param post a post object.
     */
    public void setPost( String post )
    {
        this.post = post;
    } //-- void setPost( String )

    /**
     * Set the email address or link that can be used to subscribe
     * to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     * 
     * @param subscribe a subscribe object.
     */
    public void setSubscribe( String subscribe )
    {
        this.subscribe = subscribe;
    } //-- void setSubscribe( String )

    /**
     * Set the email address or link that can be used to
     * unsubscribe to
     *             the mailing list.  If this is an email address,
     * a
     *             mailto: link will automatically be
     * created
     *             when the documentation is created.
     * 
     * @param unsubscribe a unsubscribe object.
     */
    public void setUnsubscribe( String unsubscribe )
    {
        this.unsubscribe = unsubscribe;
    } //-- void setUnsubscribe( String )

    
            
    /**
     * @see java.lang.Object#toString()
     */
    public String toString()
    {
        return "MailingList {name=" + name + ", archive=" + archive + "}";
    }
            
          
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy