001    // =================== DO NOT EDIT THIS FILE ====================
002    // Generated by Modello 1.7,
003    // any modifications will be overwritten.
004    // ==============================================================
005    
006    package org.apache.archiva.model;
007    
008    /**
009     * The Plugin.
010     * 
011     * @version $Revision$ $Date$
012     */
013    @SuppressWarnings( "all" )
014    public class Plugin
015        implements java.io.Serializable
016    {
017    
018          //--------------------------/
019         //- Class/Member Variables -/
020        //--------------------------/
021    
022        /**
023         * 
024         *             The prefix for a plugin
025         *           .
026         */
027        private String prefix;
028    
029        /**
030         * 
031         *             The artifactId for a plugin
032         *           .
033         */
034        private String artifactId;
035    
036        /**
037         * 
038         *             The name for a plugin
039         *           .
040         */
041        private String name;
042    
043    
044          //-----------/
045         //- Methods -/
046        //-----------/
047    
048        /**
049         * Method equals.
050         * 
051         * @param other
052         * @return boolean
053         */
054        public boolean equals( Object other )
055        {
056            if ( this == other )
057            {
058                return true;
059            }
060    
061            if ( !( other instanceof Plugin ) )
062            {
063                return false;
064            }
065    
066            Plugin that = (Plugin) other;
067            boolean result = true;
068    
069            result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
070    
071            return result;
072        } //-- boolean equals( Object )
073    
074        /**
075         * Get the artifactId for a plugin.
076         * 
077         * @return String
078         */
079        public String getArtifactId()
080        {
081            return this.artifactId;
082        } //-- String getArtifactId()
083    
084        /**
085         * Get the name for a plugin.
086         * 
087         * @return String
088         */
089        public String getName()
090        {
091            return this.name;
092        } //-- String getName()
093    
094        /**
095         * Get the prefix for a plugin.
096         * 
097         * @return String
098         */
099        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    }