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.configuration;
007    
008    /**
009     * Class AbstractRepositoryConfiguration.
010     * 
011     * @version $Revision$ $Date$
012     */
013    @SuppressWarnings( "all" )
014    public class AbstractRepositoryConfiguration
015        implements java.io.Serializable
016    {
017    
018          //--------------------------/
019         //- Class/Member Variables -/
020        //--------------------------/
021    
022        /**
023         * 
024         *             The repository identifier.
025         *           
026         */
027        private String id;
028    
029        /**
030         * 
031         *             The descriptive name of the repository.
032         *           
033         */
034        private String name;
035    
036        /**
037         * 
038         *             The layout of the repository. Valid values are
039         * "default" and "legacy".
040         *           
041         */
042        private String layout = "default";
043    
044        /**
045         * 
046         *             The directory for the indexes of this
047         * repository.
048         *           
049         */
050        private String indexDir;
051    
052        /**
053         * 
054         *             The description of this repository.
055         *           
056         */
057        private String description;
058    
059    
060          //-----------/
061         //- Methods -/
062        //-----------/
063    
064        /**
065         * Get the description of this repository.
066         * 
067         * @return String
068         */
069        public String getDescription()
070        {
071            return this.description;
072        } //-- String getDescription()
073    
074        /**
075         * Get the repository identifier.
076         * 
077         * @return String
078         */
079        public String getId()
080        {
081            return this.id;
082        } //-- String getId()
083    
084        /**
085         * Get the directory for the indexes of this repository.
086         * 
087         * @return String
088         */
089        public String getIndexDir()
090        {
091            return this.indexDir;
092        } //-- String getIndexDir()
093    
094        /**
095         * Get the layout of the repository. Valid values are "default"
096         * and "legacy".
097         * 
098         * @return String
099         */
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    }