View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2012-01-20 18:05:13,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.profiles;
9   
10  /**
11   * 
12   *         The conditions within the build runtime environment
13   * which will trigger
14   *         the automatic inclusion of the parent build profile.
15   *       
16   * 
17   * @version $Revision$ $Date$
18   */
19  @SuppressWarnings( "all" )
20  public class Activation
21      implements java.io.Serializable
22  {
23  
24        //--------------------------/
25       //- Class/Member Variables -/
26      //--------------------------/
27  
28      /**
29       * Flag specifying whether this profile is active as a default.
30       */
31      private boolean activeByDefault = false;
32  
33      /**
34       * 
35       *             Specifies that this profile will be activated
36       * when a matching JDK is detected.
37       *           
38       */
39      private String jdk;
40  
41      /**
42       * 
43       *             Specifies that this profile will be activated
44       * when matching OS attributes are detected.
45       *           
46       */
47      private ActivationOS os;
48  
49      /**
50       * 
51       *             Specifies that this profile will be activated
52       * when this System property is specified.
53       *           
54       */
55      private ActivationProperty property;
56  
57      /**
58       * 
59       *              Specifies that this profile will be activated
60       * based on existence of a file.
61       *              
62       */
63      private ActivationFile file;
64  
65  
66        //-----------/
67       //- Methods -/
68      //-----------/
69  
70      /**
71       * Get specifies that this profile will be activated based on
72       * existence of a file.
73       * 
74       * @return ActivationFile
75       */
76      public ActivationFile getFile()
77      {
78          return this.file;
79      } //-- ActivationFile getFile()
80  
81      /**
82       * Get specifies that this profile will be activated when a
83       * matching JDK is detected.
84       * 
85       * @return String
86       */
87      public String getJdk()
88      {
89          return this.jdk;
90      } //-- String getJdk()
91  
92      /**
93       * Get specifies that this profile will be activated when
94       * matching OS attributes are detected.
95       * 
96       * @return ActivationOS
97       */
98      public ActivationOS getOs()
99      {
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 }