1 // =================== DO NOT EDIT THIS FILE ==================== 2 // Generated by Modello 1.7, 3 // any modifications will be overwritten. 4 // ============================================================== 5 6 package org.apache.archiva.configuration; 7 8 /** 9 * Class AbstractRepositoryConfiguration. 10 * 11 * @version $Revision$ $Date$ 12 */ 13 @SuppressWarnings( "all" ) 14 public class AbstractRepositoryConfiguration 15 implements java.io.Serializable 16 { 17 18 //--------------------------/ 19 //- Class/Member Variables -/ 20 //--------------------------/ 21 22 /** 23 * 24 * The repository identifier. 25 * 26 */ 27 private String id; 28 29 /** 30 * 31 * The descriptive name of the repository. 32 * 33 */ 34 private String name; 35 36 /** 37 * 38 * The layout of the repository. Valid values are 39 * "default" and "legacy". 40 * 41 */ 42 private String layout = "default"; 43 44 /** 45 * 46 * The directory for the indexes of this 47 * repository. 48 * 49 */ 50 private String indexDir; 51 52 /** 53 * 54 * The description of this repository. 55 * 56 */ 57 private String description; 58 59 60 //-----------/ 61 //- Methods -/ 62 //-----------/ 63 64 /** 65 * Get the description of this repository. 66 * 67 * @return String 68 */ 69 public String getDescription() 70 { 71 return this.description; 72 } //-- String getDescription() 73 74 /** 75 * Get the repository identifier. 76 * 77 * @return String 78 */ 79 public String getId() 80 { 81 return this.id; 82 } //-- String getId() 83 84 /** 85 * Get the directory for the indexes of this repository. 86 * 87 * @return String 88 */ 89 public String getIndexDir() 90 { 91 return this.indexDir; 92 } //-- String getIndexDir() 93 94 /** 95 * Get the layout of the repository. Valid values are "default" 96 * and "legacy". 97 * 98 * @return String 99 */ 100 public String getLayout() 101 { 102 return this.layout; 103 } //-- String getLayout() 104 105 /** 106 * Get the descriptive name of the repository. 107 * 108 * @return String 109 */ 110 public String getName() 111 { 112 return this.name; 113 } //-- String getName() 114 115 /** 116 * Set the description of this repository. 117 * 118 * @param description 119 */ 120 public void setDescription( String description ) 121 { 122 this.description = description; 123 } //-- void setDescription( String ) 124 125 /** 126 * Set the repository identifier. 127 * 128 * @param id 129 */ 130 public void setId( String id ) 131 { 132 this.id = id; 133 } //-- void setId( String ) 134 135 /** 136 * Set the directory for the indexes of this repository. 137 * 138 * @param indexDir 139 */ 140 public void setIndexDir( String indexDir ) 141 { 142 this.indexDir = indexDir; 143 } //-- void setIndexDir( String ) 144 145 /** 146 * Set the layout of the repository. Valid values are "default" 147 * and "legacy". 148 * 149 * @param layout 150 */ 151 public void setLayout( String layout ) 152 { 153 this.layout = layout; 154 } //-- void setLayout( String ) 155 156 /** 157 * Set the descriptive name of the repository. 158 * 159 * @param name 160 */ 161 public void setName( String name ) 162 { 163 this.name = name; 164 } //-- void setName( String ) 165 166 167 public int hashCode() 168 { 169 int result = 17; 170 result = 37 * result + ( id != null ? id.hashCode() : 0 ); 171 return result; 172 } 173 174 public boolean equals( Object other ) 175 { 176 if ( this == other ) 177 { 178 return true; 179 } 180 181 if ( !( other instanceof AbstractRepositoryConfiguration ) ) 182 { 183 return false; 184 } 185 186 AbstractRepositoryConfiguration that = (AbstractRepositoryConfiguration) other; 187 boolean result = true; 188 result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) ); 189 return result; 190 } 191 192 }