1 /* 2 =================== DO NOT EDIT THIS FILE ==================== 3 Generated by Modello 1.0.1 on 2009-07-11 18:48:37, 4 any modifications will be overwritten. 5 ============================================================== 6 */ 7 8 package org.apache.maven.model; 9 10 /** 11 * A repository contains the information needed for establishing 12 * connections with 13 * remote repository. 14 * 15 * @version $Revision$ $Date$ 16 */ 17 public class Repository 18 extends RepositoryBase 19 implements java.io.Serializable 20 { 21 22 //--------------------------/ 23 //- Class/Member Variables -/ 24 //--------------------------/ 25 26 /** 27 * How to handle downloading of releases from this repository. 28 */ 29 private RepositoryPolicy releases; 30 31 /** 32 * How to handle downloading of snapshots from this repository. 33 */ 34 private RepositoryPolicy snapshots; 35 36 37 //-----------/ 38 //- Methods -/ 39 //-----------/ 40 41 /** 42 * Get how to handle downloading of releases from this 43 * repository. 44 * 45 * @return RepositoryPolicy 46 */ 47 public RepositoryPolicy getReleases() 48 { 49 return this.releases; 50 } //-- RepositoryPolicy getReleases() 51 52 /** 53 * Get how to handle downloading of snapshots from this 54 * repository. 55 * 56 * @return RepositoryPolicy 57 */ 58 public RepositoryPolicy getSnapshots() 59 { 60 return this.snapshots; 61 } //-- RepositoryPolicy getSnapshots() 62 63 /** 64 * Set how to handle downloading of releases from this 65 * repository. 66 * 67 * @param releases 68 */ 69 public void setReleases( RepositoryPolicy releases ) 70 { 71 this.releases = releases; 72 } //-- void setReleases( RepositoryPolicy ) 73 74 /** 75 * Set how to handle downloading of snapshots from this 76 * repository. 77 * 78 * @param snapshots 79 */ 80 public void setSnapshots( RepositoryPolicy snapshots ) 81 { 82 this.snapshots = snapshots; 83 } //-- void setSnapshots( RepositoryPolicy ) 84 85 86 87 /** 88 * @see java.lang.Object#equals(java.lang.Object) 89 */ 90 public boolean equals( Object obj ) 91 { 92 return super.equals( obj ); 93 } 94 95 96 }