View Javadoc

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