001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.8.1, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.maven.settings; 007 008/** 009 * 010 * 011 * Repository contains the information needed 012 * for establishing connections with remote repoistory 013 * 014 * . 015 * 016 * @version $Revision$ $Date$ 017 */ 018@SuppressWarnings( "all" ) 019public class RepositoryBase 020 implements java.io.Serializable, java.lang.Cloneable 021{ 022 023 //--------------------------/ 024 //- Class/Member Variables -/ 025 //--------------------------/ 026 027 /** 028 * 029 * 030 * A unique identifier for a repository. 031 * 032 * 033 */ 034 private String id; 035 036 /** 037 * 038 * 039 * Human readable name of the repository. 040 * 041 * 042 */ 043 private String name; 044 045 /** 046 * 047 * 048 * The url of the repository. 049 * 050 * 051 */ 052 private String url; 053 054 /** 055 * 056 * The type of layout this repository uses for 057 * locating and 058 * storing artifacts - can be "legacy" or 059 * "default". 060 * 061 */ 062 private String layout = "default"; 063 064 065 //-----------/ 066 //- Methods -/ 067 //-----------/ 068 069 /** 070 * Method clone. 071 * 072 * @return RepositoryBase 073 */ 074 public RepositoryBase clone() 075 { 076 try 077 { 078 RepositoryBase copy = (RepositoryBase) super.clone(); 079 080 return copy; 081 } 082 catch ( java.lang.Exception ex ) 083 { 084 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 085 + " does not support clone()" ).initCause( ex ); 086 } 087 } //-- RepositoryBase clone() 088 089 /** 090 * Get a unique identifier for a repository. 091 * 092 * @return String 093 */ 094 public String getId() 095 { 096 return this.id; 097 } //-- String getId() 098 099 /** 100 * Get the type of layout this repository uses for locating and 101 * storing artifacts - can be "legacy" or 102 * "default". 103 * 104 * @return String 105 */ 106 public String getLayout() 107 { 108 return this.layout; 109 } //-- String getLayout() 110 111 /** 112 * Get human readable name of the repository. 113 * 114 * @return String 115 */ 116 public String getName() 117 { 118 return this.name; 119 } //-- String getName() 120 121 /** 122 * Get the url of the repository. 123 * 124 * @return String 125 */ 126 public String getUrl() 127 { 128 return this.url; 129 } //-- String getUrl() 130 131 /** 132 * Set a unique identifier for a repository. 133 * 134 * @param id 135 */ 136 public void setId( String id ) 137 { 138 this.id = id; 139 } //-- void setId( String ) 140 141 /** 142 * Set the type of layout this repository uses for locating and 143 * storing artifacts - can be "legacy" or 144 * "default". 145 * 146 * @param layout 147 */ 148 public void setLayout( String layout ) 149 { 150 this.layout = layout; 151 } //-- void setLayout( String ) 152 153 /** 154 * Set human readable name of the repository. 155 * 156 * @param name 157 */ 158 public void setName( String name ) 159 { 160 this.name = name; 161 } //-- void setName( String ) 162 163 /** 164 * Set the url of the repository. 165 * 166 * @param url 167 */ 168 public void setUrl( String url ) 169 { 170 this.url = url; 171 } //-- void setUrl( String ) 172 173 174 175 /** 176 * @see java.lang.Object#equals(java.lang.Object) 177 */ 178 public boolean equals( Object obj ) 179 { 180 RepositoryBase other = (RepositoryBase) obj; 181 182 boolean retValue = false; 183 184 if ( id != null ) 185 { 186 retValue = id.equals( other.id ); 187 } 188 189 return retValue; 190 } 191 192 193}