View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.4.0,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.profiles;
25  
26  /**
27   * 
28   *         Repository contains the information needed for
29   * establishing connections with remote repository
30   *       .
31   * 
32   * @version $Revision$ $Date$
33   */
34  @SuppressWarnings( "all" )
35  public class Repository
36      extends RepositoryBase
37      implements java.io.Serializable
38  {
39  
40        //--------------------------/
41       //- Class/Member Variables -/
42      //--------------------------/
43  
44      /**
45       * How to handle downloading of releases from this repository.
46       */
47      private RepositoryPolicy releases;
48  
49      /**
50       * How to handle downloading of snapshots from this repository.
51       */
52      private RepositoryPolicy snapshots;
53  
54  
55        //-----------/
56       //- Methods -/
57      //-----------/
58  
59      /**
60       * Get how to handle downloading of releases from this
61       * repository.
62       * 
63       * @return RepositoryPolicy
64       */
65      public RepositoryPolicy getReleases()
66      {
67          return this.releases;
68      } //-- RepositoryPolicy getReleases()
69  
70      /**
71       * Get how to handle downloading of snapshots from this
72       * repository.
73       * 
74       * @return RepositoryPolicy
75       */
76      public RepositoryPolicy getSnapshots()
77      {
78          return this.snapshots;
79      } //-- RepositoryPolicy getSnapshots()
80  
81      /**
82       * Set how to handle downloading of releases from this
83       * repository.
84       * 
85       * @param releases a releases object.
86       */
87      public void setReleases( RepositoryPolicy releases )
88      {
89          this.releases = releases;
90      } //-- void setReleases( RepositoryPolicy )
91  
92      /**
93       * Set how to handle downloading of snapshots from this
94       * repository.
95       * 
96       * @param snapshots a snapshots object.
97       */
98      public void setSnapshots( RepositoryPolicy snapshots )
99      {
100         this.snapshots = snapshots;
101     } //-- void setSnapshots( RepositoryPolicy )
102 
103     
104             public boolean equals( Object obj )
105             {
106                 return super.equals( obj );
107             }
108           
109 }