001    /*
002     =================== DO NOT EDIT THIS FILE ====================
003     Generated by Modello 1.4.1 on 2012-01-20 18:15:43,
004     any modifications will be overwritten.
005     ==============================================================
006     */
007    
008    package org.apache.maven.settings;
009    
010    /**
011     * 
012     *         
013     *         Repository contains the information needed
014     *         for establishing connections with remote repoistory
015     *         
016     *       .
017     * 
018     * @version $Revision$ $Date$
019     */
020    @SuppressWarnings( "all" )
021    public class RepositoryBase
022        implements java.io.Serializable, java.lang.Cloneable
023    {
024    
025          //--------------------------/
026         //- Class/Member Variables -/
027        //--------------------------/
028    
029        /**
030         * 
031         *             
032         *             A unique identifier for a repository.
033         *             
034         *           
035         */
036        private String id;
037    
038        /**
039         * 
040         *             
041         *             Human readable name of the repository.
042         *             
043         *           
044         */
045        private String name;
046    
047        /**
048         * 
049         *             
050         *             The url of the repository.
051         *             
052         *           
053         */
054        private String url;
055    
056        /**
057         * 
058         *             The type of layout this repository uses for
059         * locating and
060         *             storing artifacts - can be "legacy" or
061         * "default".
062         *           
063         */
064        private String layout = "default";
065    
066    
067          //-----------/
068         //- Methods -/
069        //-----------/
070    
071        /**
072         * Method clone.
073         * 
074         * @return RepositoryBase
075         */
076        public RepositoryBase clone()
077        {
078            try
079            {
080                RepositoryBase copy = (RepositoryBase) super.clone();
081    
082                return copy;
083            }
084            catch ( java.lang.Exception ex )
085            {
086                throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
087                    + " does not support clone()" ).initCause( ex );
088            }
089        } //-- RepositoryBase clone()
090    
091        /**
092         * Get a unique identifier for a repository.
093         * 
094         * @return String
095         */
096        public String getId()
097        {
098            return this.id;
099        } //-- String getId()
100    
101        /**
102         * Get the type of layout this repository uses for locating and
103         *             storing artifacts - can be "legacy" or
104         * "default".
105         * 
106         * @return String
107         */
108        public String getLayout()
109        {
110            return this.layout;
111        } //-- String getLayout()
112    
113        /**
114         * Get human readable name of the repository.
115         * 
116         * @return String
117         */
118        public String getName()
119        {
120            return this.name;
121        } //-- String getName()
122    
123        /**
124         * Get the url of the repository.
125         * 
126         * @return String
127         */
128        public String getUrl()
129        {
130            return this.url;
131        } //-- String getUrl()
132    
133        /**
134         * Set a unique identifier for a repository.
135         * 
136         * @param id
137         */
138        public void setId( String id )
139        {
140            this.id = id;
141        } //-- void setId( String )
142    
143        /**
144         * Set the type of layout this repository uses for locating and
145         *             storing artifacts - can be "legacy" or
146         * "default".
147         * 
148         * @param layout
149         */
150        public void setLayout( String layout )
151        {
152            this.layout = layout;
153        } //-- void setLayout( String )
154    
155        /**
156         * Set human readable name of the repository.
157         * 
158         * @param name
159         */
160        public void setName( String name )
161        {
162            this.name = name;
163        } //-- void setName( String )
164    
165        /**
166         * Set the url of the repository.
167         * 
168         * @param url
169         */
170        public void setUrl( String url )
171        {
172            this.url = url;
173        } //-- void setUrl( String )
174    
175        
176                
177        /**
178         * @see java.lang.Object#equals(java.lang.Object)
179         */
180        public boolean equals( Object obj )
181        {
182            RepositoryBase other =  (RepositoryBase) obj;
183    
184            boolean retValue = false;
185    
186            if ( id != null )
187            {
188                retValue = id.equals( other.id );
189            }
190    
191            return retValue;
192        }
193                
194              
195    }