001    // =================== DO NOT EDIT THIS FILE ====================
002    // Generated by Modello 1.7,
003    // any modifications will be overwritten.
004    // ==============================================================
005    
006    package org.apache.maven.settings;
007    
008    /**
009     * 
010     *         
011     *         The <code>&lt;server&gt;</code> element contains
012     * informations required to a server settings.
013     *         
014     * 
015     * @version $Revision$ $Date$
016     */
017    @SuppressWarnings( "all" )
018    public class Server
019        extends IdentifiableBase
020        implements java.io.Serializable, java.lang.Cloneable
021    {
022    
023          //--------------------------/
024         //- Class/Member Variables -/
025        //--------------------------/
026    
027        /**
028         * 
029         *             
030         *             The username used to authenticate.
031         *             
032         *           
033         */
034        private String username;
035    
036        /**
037         * 
038         *             
039         *             The password used in conjunction with the
040         * username to authenticate.
041         *             
042         *           
043         */
044        private String password;
045    
046        /**
047         * 
048         *             
049         *             The private key location used to authenticate.
050         *             
051         *           
052         */
053        private String privateKey;
054    
055        /**
056         * 
057         *             
058         *             The passphrase used in conjunction with the
059         * privateKey to authenticate.
060         *             
061         *           
062         */
063        private String passphrase;
064    
065        /**
066         * 
067         *             
068         *             The permissions for files when they are created.
069         *             
070         *           
071         */
072        private String filePermissions;
073    
074        /**
075         * 
076         *             
077         *             The permissions for directories when they are
078         * created.
079         *             
080         *           
081         */
082        private String directoryPermissions;
083    
084        /**
085         * 
086         *             
087         *             Extra configuration for the transport layer.
088         *             
089         *           
090         */
091        private Object configuration;
092    
093    
094          //-----------/
095         //- Methods -/
096        //-----------/
097    
098        /**
099         * Method clone.
100         * 
101         * @return Server
102         */
103        public Server clone()
104        {
105            try
106            {
107                Server copy = (Server) super.clone();
108    
109                if ( this.configuration != null )
110                {
111                    copy.configuration = new org.codehaus.plexus.util.xml.Xpp3Dom( (org.codehaus.plexus.util.xml.Xpp3Dom) this.configuration );
112                }
113    
114                return copy;
115            }
116            catch ( java.lang.Exception ex )
117            {
118                throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
119                    + " does not support clone()" ).initCause( ex );
120            }
121        } //-- Server clone()
122    
123        /**
124         * Get extra configuration for the transport layer.
125         * 
126         * @return Object
127         */
128        public Object getConfiguration()
129        {
130            return this.configuration;
131        } //-- Object getConfiguration()
132    
133        /**
134         * Get the permissions for directories when they are created.
135         * 
136         * @return String
137         */
138        public String getDirectoryPermissions()
139        {
140            return this.directoryPermissions;
141        } //-- String getDirectoryPermissions()
142    
143        /**
144         * Get the permissions for files when they are created.
145         * 
146         * @return String
147         */
148        public String getFilePermissions()
149        {
150            return this.filePermissions;
151        } //-- String getFilePermissions()
152    
153        /**
154         * Get the passphrase used in conjunction with the privateKey
155         * to authenticate.
156         * 
157         * @return String
158         */
159        public String getPassphrase()
160        {
161            return this.passphrase;
162        } //-- String getPassphrase()
163    
164        /**
165         * Get the password used in conjunction with the username to
166         * authenticate.
167         * 
168         * @return String
169         */
170        public String getPassword()
171        {
172            return this.password;
173        } //-- String getPassword()
174    
175        /**
176         * Get the private key location used to authenticate.
177         * 
178         * @return String
179         */
180        public String getPrivateKey()
181        {
182            return this.privateKey;
183        } //-- String getPrivateKey()
184    
185        /**
186         * Get the username used to authenticate.
187         * 
188         * @return String
189         */
190        public String getUsername()
191        {
192            return this.username;
193        } //-- String getUsername()
194    
195        /**
196         * Set extra configuration for the transport layer.
197         * 
198         * @param configuration
199         */
200        public void setConfiguration( Object configuration )
201        {
202            this.configuration = configuration;
203        } //-- void setConfiguration( Object )
204    
205        /**
206         * Set the permissions for directories when they are created.
207         * 
208         * @param directoryPermissions
209         */
210        public void setDirectoryPermissions( String directoryPermissions )
211        {
212            this.directoryPermissions = directoryPermissions;
213        } //-- void setDirectoryPermissions( String )
214    
215        /**
216         * Set the permissions for files when they are created.
217         * 
218         * @param filePermissions
219         */
220        public void setFilePermissions( String filePermissions )
221        {
222            this.filePermissions = filePermissions;
223        } //-- void setFilePermissions( String )
224    
225        /**
226         * Set the passphrase used in conjunction with the privateKey
227         * to authenticate.
228         * 
229         * @param passphrase
230         */
231        public void setPassphrase( String passphrase )
232        {
233            this.passphrase = passphrase;
234        } //-- void setPassphrase( String )
235    
236        /**
237         * Set the password used in conjunction with the username to
238         * authenticate.
239         * 
240         * @param password
241         */
242        public void setPassword( String password )
243        {
244            this.password = password;
245        } //-- void setPassword( String )
246    
247        /**
248         * Set the private key location used to authenticate.
249         * 
250         * @param privateKey
251         */
252        public void setPrivateKey( String privateKey )
253        {
254            this.privateKey = privateKey;
255        } //-- void setPrivateKey( String )
256    
257        /**
258         * Set the username used to authenticate.
259         * 
260         * @param username
261         */
262        public void setUsername( String username )
263        {
264            this.username = username;
265        } //-- void setUsername( String )
266    
267    }