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.profiles; 007 008/** 009 * 010 * Repository contains the information needed 011 * for establishing connections with remote repoistory 012 * . 013 * 014 * @version $Revision$ $Date$ 015 */ 016@SuppressWarnings( "all" ) 017public class RepositoryBase 018 implements java.io.Serializable 019{ 020 021 //--------------------------/ 022 //- Class/Member Variables -/ 023 //--------------------------/ 024 025 /** 026 * 027 * A unique identifier for a repository. 028 * 029 */ 030 private String id; 031 032 /** 033 * 034 * Human readable name of the repository 035 * . 036 */ 037 private String name; 038 039 /** 040 * 041 * The url of the repository 042 * . 043 */ 044 private String url; 045 046 /** 047 * The type of layout this repository uses for locating and 048 * storing artifacts - can be "legacy" or 049 * "default". 050 */ 051 private String layout = "default"; 052 053 054 //-----------/ 055 //- Methods -/ 056 //-----------/ 057 058 /** 059 * Get a unique identifier for a repository. 060 * 061 * @return String 062 */ 063 public String getId() 064 { 065 return this.id; 066 } //-- String getId() 067 068 /** 069 * Get the type of layout this repository uses for locating and 070 * storing artifacts - can be "legacy" or 071 * "default". 072 * 073 * @return String 074 */ 075 public String getLayout() 076 { 077 return this.layout; 078 } //-- String getLayout() 079 080 /** 081 * Get human readable name of the repository. 082 * 083 * @return String 084 */ 085 public String getName() 086 { 087 return this.name; 088 } //-- String getName() 089 090 /** 091 * Get the url of the repository. 092 * 093 * @return String 094 */ 095 public String getUrl() 096 { 097 return this.url; 098 } //-- String getUrl() 099 100 /** 101 * Set a unique identifier for a repository. 102 * 103 * @param id 104 */ 105 public void setId( String id ) 106 { 107 this.id = id; 108 } //-- void setId( String ) 109 110 /** 111 * Set the type of layout this repository uses for locating and 112 * storing artifacts - can be "legacy" or 113 * "default". 114 * 115 * @param layout 116 */ 117 public void setLayout( String layout ) 118 { 119 this.layout = layout; 120 } //-- void setLayout( String ) 121 122 /** 123 * Set human readable name of the repository. 124 * 125 * @param name 126 */ 127 public void setName( String name ) 128 { 129 this.name = name; 130 } //-- void setName( String ) 131 132 /** 133 * Set the url of the repository. 134 * 135 * @param url 136 */ 137 public void setUrl( String url ) 138 { 139 this.url = url; 140 } //-- void setUrl( String ) 141 142 143 public boolean equals( Object obj ) 144 { 145 RepositoryBase other = (RepositoryBase) obj; 146 147 boolean retValue = false; 148 149 if ( id != null ) 150 { 151 retValue = id.equals( other.id ); 152 } 153 154 return retValue; 155 } 156 157}