Coverage Report - org.apache.maven.settings.Repository
 
Classes in this File Line Coverage Branch Coverage Complexity
Repository
0%
0/12
N/A
1
 
 1  
 /*
 2  
  * $Id$
 3  
  */
 4  
 
 5  
 package org.apache.maven.settings;
 6  
 
 7  
   //---------------------------------/
 8  
  //- Imported classes and packages -/
 9  
 //---------------------------------/
 10  
 
 11  
 import java.util.Date;
 12  
 
 13  
 /**
 14  
  * 
 15  
  *         Repository contains the information needed for
 16  
  * establishing
 17  
  *         connections with remote repoistory
 18  
  *       .
 19  
  * 
 20  
  * @version $Revision$ $Date$
 21  
  */
 22  0
 public class Repository extends RepositoryBase 
 23  
 implements java.io.Serializable
 24  
 {
 25  
 
 26  
 
 27  
       //--------------------------/
 28  
      //- Class/Member Variables -/
 29  
     //--------------------------/
 30  
 
 31  
     /**
 32  
      * 
 33  
      *             How to handle downloading of releases from this
 34  
      * repository
 35  
      *           .
 36  
      */
 37  
     private RepositoryPolicy releases;
 38  
 
 39  
     /**
 40  
      * 
 41  
      *             How to handle downloading of snapshots from this
 42  
      * repository
 43  
      *           .
 44  
      */
 45  
     private RepositoryPolicy snapshots;
 46  
 
 47  
 
 48  
       //-----------/
 49  
      //- Methods -/
 50  
     //-----------/
 51  
 
 52  
     /**
 53  
      * Get 
 54  
      *             How to handle downloading of releases from this
 55  
      * repository
 56  
      *           .
 57  
      * 
 58  
      * @return RepositoryPolicy
 59  
      */
 60  
     public RepositoryPolicy getReleases()
 61  
     {
 62  0
         return this.releases;
 63  
     } //-- RepositoryPolicy getReleases() 
 64  
 
 65  
     /**
 66  
      * Get 
 67  
      *             How to handle downloading of snapshots from this
 68  
      * repository
 69  
      *           .
 70  
      * 
 71  
      * @return RepositoryPolicy
 72  
      */
 73  
     public RepositoryPolicy getSnapshots()
 74  
     {
 75  0
         return this.snapshots;
 76  
     } //-- RepositoryPolicy getSnapshots() 
 77  
 
 78  
     /**
 79  
      * Set 
 80  
      *             How to handle downloading of releases from this
 81  
      * repository
 82  
      *           .
 83  
      * 
 84  
      * @param releases
 85  
      */
 86  
     public void setReleases( RepositoryPolicy releases )
 87  
     {
 88  0
         this.releases = releases;
 89  0
     } //-- void setReleases( RepositoryPolicy ) 
 90  
 
 91  
     /**
 92  
      * Set 
 93  
      *             How to handle downloading of snapshots from this
 94  
      * repository
 95  
      *           .
 96  
      * 
 97  
      * @param snapshots
 98  
      */
 99  
     public void setSnapshots( RepositoryPolicy snapshots )
 100  
     {
 101  0
         this.snapshots = snapshots;
 102  0
     } //-- void setSnapshots( RepositoryPolicy ) 
 103  
 
 104  
 
 105  
             
 106  
     /**
 107  
      * @see org.apache.maven.settings.RepositoryBase#equals(java.lang.Object)
 108  
      */
 109  
     public boolean equals( Object obj )
 110  
     {
 111  0
         return super.equals( obj );
 112  
     }
 113  
             
 114  
           
 115  0
     private String modelEncoding = "UTF-8";
 116  
 
 117  
     /**
 118  
      * Set an encoding used for reading/writing the model.
 119  
      *
 120  
      * @param modelEncoding the encoding used when reading/writing the model.
 121  
      */
 122  
     public void setModelEncoding( String modelEncoding )
 123  
     {
 124  0
         this.modelEncoding = modelEncoding;
 125  0
     }
 126  
 
 127  
     /**
 128  
      * @return the current encoding used when reading/writing this model.
 129  
      */
 130  
     public String getModelEncoding()
 131  
     {
 132  0
         return modelEncoding;
 133  
     }
 134  
 }