View Javadoc

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