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.model; 7 8 /** 9 * The Plugin. 10 * 11 * @version $Revision$ $Date$ 12 */ 13 @SuppressWarnings( "all" ) 14 public class Plugin 15 implements java.io.Serializable 16 { 17 18 //--------------------------/ 19 //- Class/Member Variables -/ 20 //--------------------------/ 21 22 /** 23 * 24 * The prefix for a plugin 25 * . 26 */ 27 private String prefix; 28 29 /** 30 * 31 * The artifactId for a plugin 32 * . 33 */ 34 private String artifactId; 35 36 /** 37 * 38 * The name for a plugin 39 * . 40 */ 41 private String name; 42 43 44 //-----------/ 45 //- Methods -/ 46 //-----------/ 47 48 /** 49 * Method equals. 50 * 51 * @param other 52 * @return boolean 53 */ 54 public boolean equals( Object other ) 55 { 56 if ( this == other ) 57 { 58 return true; 59 } 60 61 if ( !( other instanceof Plugin ) ) 62 { 63 return false; 64 } 65 66 Plugin that = (Plugin) other; 67 boolean result = true; 68 69 result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) ); 70 71 return result; 72 } //-- boolean equals( Object ) 73 74 /** 75 * Get the artifactId for a plugin. 76 * 77 * @return String 78 */ 79 public String getArtifactId() 80 { 81 return this.artifactId; 82 } //-- String getArtifactId() 83 84 /** 85 * Get the name for a plugin. 86 * 87 * @return String 88 */ 89 public String getName() 90 { 91 return this.name; 92 } //-- String getName() 93 94 /** 95 * Get the prefix for a plugin. 96 * 97 * @return String 98 */ 99 public String getPrefix() 100 { 101 return this.prefix; 102 } //-- String getPrefix() 103 104 /** 105 * Method hashCode. 106 * 107 * @return int 108 */ 109 public int hashCode() 110 { 111 int result = 17; 112 113 result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 ); 114 115 return result; 116 } //-- int hashCode() 117 118 /** 119 * Set the artifactId for a plugin. 120 * 121 * @param artifactId 122 */ 123 public void setArtifactId( String artifactId ) 124 { 125 this.artifactId = artifactId; 126 } //-- void setArtifactId( String ) 127 128 /** 129 * Set the name for a plugin. 130 * 131 * @param name 132 */ 133 public void setName( String name ) 134 { 135 this.name = name; 136 } //-- void setName( String ) 137 138 /** 139 * Set the prefix for a plugin. 140 * 141 * @param prefix 142 */ 143 public void setPrefix( String prefix ) 144 { 145 this.prefix = prefix; 146 } //-- void setPrefix( String ) 147 148 /** 149 * Method toString. 150 * 151 * @return String 152 */ 153 public java.lang.String toString() 154 { 155 StringBuilder buf = new StringBuilder( 128 ); 156 157 buf.append( "artifactId = '" ); 158 buf.append( getArtifactId() ); 159 buf.append( "'" ); 160 161 return buf.toString(); 162 } //-- java.lang.String toString() 163 164 }