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.profiles;
9   
10  /**
11   * 
12   *         Repository contains the information needed for
13   * establishing connections with remote repoistory
14   *       .
15   * 
16   * @version $Revision$ $Date$
17   */
18  public class Repository
19      extends RepositoryBase
20      implements java.io.Serializable
21  {
22  
23        //--------------------------/
24       //- Class/Member Variables -/
25      //--------------------------/
26  
27      /**
28       * How to handle downloading of releases from this repository.
29       */
30      private RepositoryPolicy releases;
31  
32      /**
33       * How to handle downloading of snapshots from this repository.
34       */
35      private RepositoryPolicy snapshots;
36  
37  
38        //-----------/
39       //- Methods -/
40      //-----------/
41  
42      /**
43       * Get how to handle downloading of releases from this
44       * repository.
45       * 
46       * @return RepositoryPolicy
47       */
48      public RepositoryPolicy getReleases()
49      {
50          return this.releases;
51      } //-- RepositoryPolicy getReleases()
52  
53      /**
54       * Get how to handle downloading of snapshots from this
55       * repository.
56       * 
57       * @return RepositoryPolicy
58       */
59      public RepositoryPolicy getSnapshots()
60      {
61          return this.snapshots;
62      } //-- RepositoryPolicy getSnapshots()
63  
64      /**
65       * Set how to handle downloading of releases from this
66       * repository.
67       * 
68       * @param releases
69       */
70      public void setReleases( RepositoryPolicy releases )
71      {
72          this.releases = releases;
73      } //-- void setReleases( RepositoryPolicy )
74  
75      /**
76       * Set how to handle downloading of snapshots from this
77       * repository.
78       * 
79       * @param snapshots
80       */
81      public void setSnapshots( RepositoryPolicy snapshots )
82      {
83          this.snapshots = snapshots;
84      } //-- void setSnapshots( RepositoryPolicy )
85  
86  
87              public boolean equals( Object obj )
88              {
89                  return super.equals( obj );
90              }
91            
92  }