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