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