001    /*
002     =================== DO NOT EDIT THIS FILE ====================
003     Generated by Modello 1.4.1 on 2012-01-20 18:32:34,
004     any modifications will be overwritten.
005     ==============================================================
006     */
007    
008    package org.apache.maven.profiles;
009    
010    /**
011     * 
012     *         The conditions within the build runtime environment
013     * which will trigger
014     *         the automatic inclusion of the parent build profile.
015     *       
016     * 
017     * @version $Revision$ $Date$
018     */
019    @SuppressWarnings( "all" )
020    public class Activation
021        implements java.io.Serializable
022    {
023    
024          //--------------------------/
025         //- Class/Member Variables -/
026        //--------------------------/
027    
028        /**
029         * Flag specifying whether this profile is active as a default.
030         */
031        private boolean activeByDefault = false;
032    
033        /**
034         * 
035         *             Specifies that this profile will be activated
036         * when a matching JDK is detected.
037         *           
038         */
039        private String jdk;
040    
041        /**
042         * 
043         *             Specifies that this profile will be activated
044         * when matching OS attributes are detected.
045         *           
046         */
047        private ActivationOS os;
048    
049        /**
050         * 
051         *             Specifies that this profile will be activated
052         * when this System property is specified.
053         *           
054         */
055        private ActivationProperty property;
056    
057        /**
058         * 
059         *              Specifies that this profile will be activated
060         * based on existence of a file.
061         *              
062         */
063        private ActivationFile file;
064    
065    
066          //-----------/
067         //- Methods -/
068        //-----------/
069    
070        /**
071         * Get specifies that this profile will be activated based on
072         * existence of a file.
073         * 
074         * @return ActivationFile
075         */
076        public ActivationFile getFile()
077        {
078            return this.file;
079        } //-- ActivationFile getFile()
080    
081        /**
082         * Get specifies that this profile will be activated when a
083         * matching JDK is detected.
084         * 
085         * @return String
086         */
087        public String getJdk()
088        {
089            return this.jdk;
090        } //-- String getJdk()
091    
092        /**
093         * Get specifies that this profile will be activated when
094         * matching OS attributes are detected.
095         * 
096         * @return ActivationOS
097         */
098        public ActivationOS getOs()
099        {
100            return this.os;
101        } //-- ActivationOS getOs()
102    
103        /**
104         * Get specifies that this profile will be activated when this
105         * System property is specified.
106         * 
107         * @return ActivationProperty
108         */
109        public ActivationProperty getProperty()
110        {
111            return this.property;
112        } //-- ActivationProperty getProperty()
113    
114        /**
115         * Get flag specifying whether this profile is active as a
116         * default.
117         * 
118         * @return boolean
119         */
120        public boolean isActiveByDefault()
121        {
122            return this.activeByDefault;
123        } //-- boolean isActiveByDefault()
124    
125        /**
126         * Set flag specifying whether this profile is active as a
127         * default.
128         * 
129         * @param activeByDefault
130         */
131        public void setActiveByDefault( boolean activeByDefault )
132        {
133            this.activeByDefault = activeByDefault;
134        } //-- void setActiveByDefault( boolean )
135    
136        /**
137         * Set specifies that this profile will be activated based on
138         * existence of a file.
139         * 
140         * @param file
141         */
142        public void setFile( ActivationFile file )
143        {
144            this.file = file;
145        } //-- void setFile( ActivationFile )
146    
147        /**
148         * Set specifies that this profile will be activated when a
149         * matching JDK is detected.
150         * 
151         * @param jdk
152         */
153        public void setJdk( String jdk )
154        {
155            this.jdk = jdk;
156        } //-- void setJdk( String )
157    
158        /**
159         * Set specifies that this profile will be activated when
160         * matching OS attributes are detected.
161         * 
162         * @param os
163         */
164        public void setOs( ActivationOS os )
165        {
166            this.os = os;
167        } //-- void setOs( ActivationOS )
168    
169        /**
170         * Set specifies that this profile will be activated when this
171         * System property is specified.
172         * 
173         * @param property
174         */
175        public void setProperty( ActivationProperty property )
176        {
177            this.property = property;
178        } //-- void setProperty( ActivationProperty )
179    
180    }