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