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.settings;
007
008/**
009 * 
010 *         Repository contains the information needed for
011 * establishing
012 *         connections with remote repository
013 *       .
014 * 
015 * @version $Revision$ $Date$
016 */
017@SuppressWarnings( "all" )
018public class Repository
019    extends RepositoryBase
020    implements java.io.Serializable, java.lang.Cloneable
021{
022
023      //--------------------------/
024     //- Class/Member Variables -/
025    //--------------------------/
026
027    /**
028     * 
029     *             How to handle downloading of releases from this
030     * repository
031     *           .
032     */
033    private RepositoryPolicy releases;
034
035    /**
036     * 
037     *             How to handle downloading of snapshots from this
038     * repository
039     *           .
040     */
041    private RepositoryPolicy snapshots;
042
043
044      //-----------/
045     //- Methods -/
046    //-----------/
047
048    /**
049     * Method clone.
050     * 
051     * @return Repository
052     */
053    public Repository clone()
054    {
055        try
056        {
057            Repository copy = (Repository) super.clone();
058
059            if ( this.releases != null )
060            {
061                copy.releases = (RepositoryPolicy) this.releases.clone();
062            }
063
064            if ( this.snapshots != null )
065            {
066                copy.snapshots = (RepositoryPolicy) this.snapshots.clone();
067            }
068
069            return copy;
070        }
071        catch ( java.lang.Exception ex )
072        {
073            throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
074                + " does not support clone()" ).initCause( ex );
075        }
076    } //-- Repository clone()
077
078    /**
079     * Get how to handle downloading of releases from this
080     * repository.
081     * 
082     * @return RepositoryPolicy
083     */
084    public RepositoryPolicy getReleases()
085    {
086        return this.releases;
087    } //-- RepositoryPolicy getReleases()
088
089    /**
090     * Get how to handle downloading of snapshots from this
091     * repository.
092     * 
093     * @return RepositoryPolicy
094     */
095    public RepositoryPolicy getSnapshots()
096    {
097        return this.snapshots;
098    } //-- RepositoryPolicy getSnapshots()
099
100    /**
101     * Set how to handle downloading of releases from this
102     * repository.
103     * 
104     * @param releases
105     */
106    public void setReleases( RepositoryPolicy releases )
107    {
108        this.releases = releases;
109    } //-- void setReleases( RepositoryPolicy )
110
111    /**
112     * Set how to handle downloading of snapshots from this
113     * repository.
114     * 
115     * @param snapshots
116     */
117    public void setSnapshots( RepositoryPolicy snapshots )
118    {
119        this.snapshots = snapshots;
120    } //-- void setSnapshots( RepositoryPolicy )
121
122    
123            
124    /**
125     * @see org.apache.maven.settings.RepositoryBase#equals(java.lang.Object)
126     */
127    public boolean equals( Object obj )
128    {
129        return super.equals( obj );
130    }
131            
132          
133}