001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.8.3,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.maven.model;
007
008/**
009 * A repository contains the information needed for establishing
010 * connections with
011 *         remote repository.
012 * 
013 * @version $Revision$ $Date$
014 */
015@SuppressWarnings( "all" )
016public class Repository
017    extends RepositoryBase
018    implements java.io.Serializable, java.lang.Cloneable
019{
020
021      //--------------------------/
022     //- Class/Member Variables -/
023    //--------------------------/
024
025    /**
026     * How to handle downloading of releases from this repository.
027     */
028    private RepositoryPolicy releases;
029
030    /**
031     * How to handle downloading of snapshots from this repository.
032     */
033    private RepositoryPolicy snapshots;
034
035
036      //-----------/
037     //- Methods -/
038    //-----------/
039
040    /**
041     * Method clone.
042     * 
043     * @return Repository
044     */
045    public Repository clone()
046    {
047        try
048        {
049            Repository copy = (Repository) super.clone();
050
051            if ( this.releases != null )
052            {
053                copy.releases = (RepositoryPolicy) this.releases.clone();
054            }
055
056            if ( this.snapshots != null )
057            {
058                copy.snapshots = (RepositoryPolicy) this.snapshots.clone();
059            }
060
061            return copy;
062        }
063        catch ( java.lang.Exception ex )
064        {
065            throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
066                + " does not support clone()" ).initCause( ex );
067        }
068    } //-- Repository clone()
069
070    /**
071     * Get how to handle downloading of releases from this
072     * repository.
073     * 
074     * @return RepositoryPolicy
075     */
076    public RepositoryPolicy getReleases()
077    {
078        return this.releases;
079    } //-- RepositoryPolicy getReleases()
080
081    /**
082     * Get how to handle downloading of snapshots from this
083     * repository.
084     * 
085     * @return RepositoryPolicy
086     */
087    public RepositoryPolicy getSnapshots()
088    {
089        return this.snapshots;
090    } //-- RepositoryPolicy getSnapshots()
091
092    /**
093     * Set how to handle downloading of releases from this
094     * repository.
095     * 
096     * @param releases
097     */
098    public void setReleases( RepositoryPolicy releases )
099    {
100        this.releases = releases;
101    } //-- void setReleases( RepositoryPolicy )
102
103    /**
104     * Set how to handle downloading of snapshots from this
105     * repository.
106     * 
107     * @param snapshots
108     */
109    public void setSnapshots( RepositoryPolicy snapshots )
110    {
111        this.snapshots = snapshots;
112    } //-- void setSnapshots( RepositoryPolicy )
113
114}