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     *         The conditions within the build runtime environment
014     * which will trigger
015     *         the automatic inclusion of the parent build profile.
016     *         
017     *       
018     * 
019     * @version $Revision$ $Date$
020     */
021    @SuppressWarnings( "all" )
022    public class Activation
023        implements java.io.Serializable, java.lang.Cloneable
024    {
025    
026          //--------------------------/
027         //- Class/Member Variables -/
028        //--------------------------/
029    
030        /**
031         * 
032         *             Flag specifying whether this profile is active
033         * as a default.
034         *           
035         */
036        private boolean activeByDefault = false;
037    
038        /**
039         * 
040         *             
041         *             Specifies that this profile will be activated
042         * when a matching JDK is detected.
043         *             
044         *           
045         */
046        private String jdk;
047    
048        /**
049         * 
050         *             
051         *             Specifies that this profile will be activated
052         * when matching OS attributes are detected.
053         *             
054         *           
055         */
056        private ActivationOS os;
057    
058        /**
059         * 
060         *             
061         *             Specifies that this profile will be activated
062         * when this System property is specified.
063         *             
064         *           
065         */
066        private ActivationProperty property;
067    
068        /**
069         * 
070         *             
071         *             Specifies that this profile will be activated
072         * based on existence of a file.
073         *             
074         *           
075         */
076        private ActivationFile file;
077    
078    
079          //-----------/
080         //- Methods -/
081        //-----------/
082    
083        /**
084         * Method clone.
085         * 
086         * @return Activation
087         */
088        public Activation clone()
089        {
090            try
091            {
092                Activation copy = (Activation) super.clone();
093    
094                if ( this.os != null )
095                {
096                    copy.os = (ActivationOS) this.os.clone();
097                }
098    
099                if ( this.property != null )
100                {
101                    copy.property = (ActivationProperty) this.property.clone();
102                }
103    
104                if ( this.file != null )
105                {
106                    copy.file = (ActivationFile) this.file.clone();
107                }
108    
109                return copy;
110            }
111            catch ( java.lang.Exception ex )
112            {
113                throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
114                    + " does not support clone()" ).initCause( ex );
115            }
116        } //-- Activation clone()
117    
118        /**
119         * Get specifies that this profile will be activated based on
120         * existence of a file.
121         * 
122         * @return ActivationFile
123         */
124        public ActivationFile getFile()
125        {
126            return this.file;
127        } //-- ActivationFile getFile()
128    
129        /**
130         * Get specifies that this profile will be activated when a
131         * matching JDK is detected.
132         * 
133         * @return String
134         */
135        public String getJdk()
136        {
137            return this.jdk;
138        } //-- String getJdk()
139    
140        /**
141         * Get specifies that this profile will be activated when
142         * matching OS attributes are detected.
143         * 
144         * @return ActivationOS
145         */
146        public ActivationOS getOs()
147        {
148            return this.os;
149        } //-- ActivationOS getOs()
150    
151        /**
152         * Get specifies that this profile will be activated when this
153         * System property is specified.
154         * 
155         * @return ActivationProperty
156         */
157        public ActivationProperty getProperty()
158        {
159            return this.property;
160        } //-- ActivationProperty getProperty()
161    
162        /**
163         * Get flag specifying whether this profile is active as a
164         * default.
165         * 
166         * @return boolean
167         */
168        public boolean isActiveByDefault()
169        {
170            return this.activeByDefault;
171        } //-- boolean isActiveByDefault()
172    
173        /**
174         * Set flag specifying whether this profile is active as a
175         * default.
176         * 
177         * @param activeByDefault
178         */
179        public void setActiveByDefault( boolean activeByDefault )
180        {
181            this.activeByDefault = activeByDefault;
182        } //-- void setActiveByDefault( boolean )
183    
184        /**
185         * Set specifies that this profile will be activated based on
186         * existence of a file.
187         * 
188         * @param file
189         */
190        public void setFile( ActivationFile file )
191        {
192            this.file = file;
193        } //-- void setFile( ActivationFile )
194    
195        /**
196         * Set specifies that this profile will be activated when a
197         * matching JDK is detected.
198         * 
199         * @param jdk
200         */
201        public void setJdk( String jdk )
202        {
203            this.jdk = jdk;
204        } //-- void setJdk( String )
205    
206        /**
207         * Set specifies that this profile will be activated when
208         * matching OS attributes are detected.
209         * 
210         * @param os
211         */
212        public void setOs( ActivationOS os )
213        {
214            this.os = os;
215        } //-- void setOs( ActivationOS )
216    
217        /**
218         * Set specifies that this profile will be activated when this
219         * System property is specified.
220         * 
221         * @param property
222         */
223        public void setProperty( ActivationProperty property )
224        {
225            this.property = property;
226        } //-- void setProperty( ActivationProperty )
227    
228    }