Coverage Report - org.apache.maven.settings.RepositoryBase
 
Classes in this File Line Coverage Branch Coverage Complexity
RepositoryBase
0 %
0/19
0 %
0/2
1,111
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.0.1 on 2009-09-09 03:05:33,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.settings;
 9  
 
 10  
 /**
 11  
  * 
 12  
  *         
 13  
  *         Repository contains the information needed
 14  
  *         for establishing connections with remote repoistory
 15  
  *         
 16  
  *       .
 17  
  * 
 18  
  * @version $Revision$ $Date$
 19  
  */
 20  0
 public class RepositoryBase
 21  
     implements java.io.Serializable
 22  
 {
 23  
 
 24  
       //--------------------------/
 25  
      //- Class/Member Variables -/
 26  
     //--------------------------/
 27  
 
 28  
     /**
 29  
      * 
 30  
      *             
 31  
      *             A unique identifier for a repository.
 32  
      *             
 33  
      *           
 34  
      */
 35  
     private String id;
 36  
 
 37  
     /**
 38  
      * 
 39  
      *             
 40  
      *             Human readable name of the repository.
 41  
      *             
 42  
      *           
 43  
      */
 44  
     private String name;
 45  
 
 46  
     /**
 47  
      * 
 48  
      *             
 49  
      *             The url of the repository.
 50  
      *             
 51  
      *           
 52  
      */
 53  
     private String url;
 54  
 
 55  
     /**
 56  
      * 
 57  
      *             The type of layout this repository uses for
 58  
      * locating and
 59  
      *             storing artifacts - can be "legacy" or
 60  
      * "default".
 61  
      *           
 62  
      */
 63  0
     private String layout = "default";
 64  
 
 65  
 
 66  
       //-----------/
 67  
      //- Methods -/
 68  
     //-----------/
 69  
 
 70  
     /**
 71  
      * Get a unique identifier for a repository.
 72  
      * 
 73  
      * @return String
 74  
      */
 75  
     public String getId()
 76  
     {
 77  0
         return this.id;
 78  
     } //-- String getId()
 79  
 
 80  
     /**
 81  
      * Get the type of layout this repository uses for locating and
 82  
      *             storing artifacts - can be "legacy" or
 83  
      * "default".
 84  
      * 
 85  
      * @return String
 86  
      */
 87  
     public String getLayout()
 88  
     {
 89  0
         return this.layout;
 90  
     } //-- String getLayout()
 91  
 
 92  
     /**
 93  
      * Get human readable name of the repository.
 94  
      * 
 95  
      * @return String
 96  
      */
 97  
     public String getName()
 98  
     {
 99  0
         return this.name;
 100  
     } //-- String getName()
 101  
 
 102  
     /**
 103  
      * Get the url of the repository.
 104  
      * 
 105  
      * @return String
 106  
      */
 107  
     public String getUrl()
 108  
     {
 109  0
         return this.url;
 110  
     } //-- String getUrl()
 111  
 
 112  
     /**
 113  
      * Set a unique identifier for a repository.
 114  
      * 
 115  
      * @param id
 116  
      */
 117  
     public void setId( String id )
 118  
     {
 119  0
         this.id = id;
 120  0
     } //-- void setId( String )
 121  
 
 122  
     /**
 123  
      * Set the type of layout this repository uses for locating and
 124  
      *             storing artifacts - can be "legacy" or
 125  
      * "default".
 126  
      * 
 127  
      * @param layout
 128  
      */
 129  
     public void setLayout( String layout )
 130  
     {
 131  0
         this.layout = layout;
 132  0
     } //-- void setLayout( String )
 133  
 
 134  
     /**
 135  
      * Set human readable name of the repository.
 136  
      * 
 137  
      * @param name
 138  
      */
 139  
     public void setName( String name )
 140  
     {
 141  0
         this.name = name;
 142  0
     } //-- void setName( String )
 143  
 
 144  
     /**
 145  
      * Set the url of the repository.
 146  
      * 
 147  
      * @param url
 148  
      */
 149  
     public void setUrl( String url )
 150  
     {
 151  0
         this.url = url;
 152  0
     } //-- void setUrl( String )
 153  
 
 154  
 
 155  
             
 156  
     /**
 157  
      * @see java.lang.Object#equals(java.lang.Object)
 158  
      */
 159  
     public boolean equals( Object obj )
 160  
     {
 161  0
         RepositoryBase other =  (RepositoryBase) obj;
 162  
 
 163  0
         boolean retValue = false;
 164  
 
 165  0
         if ( id != null )
 166  
         {
 167  0
             retValue = id.equals( other.id );
 168  
         }
 169  
 
 170  0
         return retValue;
 171  
     }
 172  
             
 173  
           
 174  
 }