View Javadoc

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