View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.0.1 on 2009-09-09 03:30:24,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.settings;
9   
10  /**
11   * 
12   *         
13   *         The conditions within the build runtime environment
14   * which will trigger
15   *         the automatic inclusion of the parent build profile.
16   *         
17   *       
18   * 
19   * @version $Revision$ $Date$
20   */
21  public class Activation
22      implements java.io.Serializable
23  {
24  
25        //--------------------------/
26       //- Class/Member Variables -/
27      //--------------------------/
28  
29      /**
30       * 
31       *             Flag specifying whether this profile is active
32       * as a default.
33       *           
34       */
35      private boolean activeByDefault = false;
36  
37      /**
38       * 
39       *             
40       *             Specifies that this profile will be activated
41       * when a matching JDK is detected.
42       *             
43       *           
44       */
45      private String jdk;
46  
47      /**
48       * 
49       *             
50       *             Specifies that this profile will be activated
51       * when matching OS attributes are detected.
52       *             
53       *           
54       */
55      private ActivationOS os;
56  
57      /**
58       * 
59       *             
60       *             Specifies that this profile will be activated
61       * when this System property is specified.
62       *             
63       *           
64       */
65      private ActivationProperty property;
66  
67      /**
68       * 
69       *             
70       *             Specifies that this profile will be activated
71       * based on existence of a file.
72       *             
73       *           
74       */
75      private ActivationFile file;
76  
77  
78        //-----------/
79       //- Methods -/
80      //-----------/
81  
82      /**
83       * Get specifies that this profile will be activated based on
84       * existence of a file.
85       * 
86       * @return ActivationFile
87       */
88      public ActivationFile getFile()
89      {
90          return this.file;
91      } //-- ActivationFile getFile()
92  
93      /**
94       * Get specifies that this profile will be activated when a
95       * matching JDK is detected.
96       * 
97       * @return String
98       */
99      public String getJdk()
100     {
101         return this.jdk;
102     } //-- String getJdk()
103 
104     /**
105      * Get specifies that this profile will be activated when
106      * matching OS attributes are detected.
107      * 
108      * @return ActivationOS
109      */
110     public ActivationOS getOs()
111     {
112         return this.os;
113     } //-- ActivationOS getOs()
114 
115     /**
116      * Get specifies that this profile will be activated when this
117      * System property is specified.
118      * 
119      * @return ActivationProperty
120      */
121     public ActivationProperty getProperty()
122     {
123         return this.property;
124     } //-- ActivationProperty getProperty()
125 
126     /**
127      * Get flag specifying whether this profile is active as a
128      * default.
129      * 
130      * @return boolean
131      */
132     public boolean isActiveByDefault()
133     {
134         return this.activeByDefault;
135     } //-- boolean isActiveByDefault()
136 
137     /**
138      * Set flag specifying whether this profile is active as a
139      * default.
140      * 
141      * @param activeByDefault
142      */
143     public void setActiveByDefault( boolean activeByDefault )
144     {
145         this.activeByDefault = activeByDefault;
146     } //-- void setActiveByDefault( boolean )
147 
148     /**
149      * Set specifies that this profile will be activated based on
150      * existence of a file.
151      * 
152      * @param file
153      */
154     public void setFile( ActivationFile file )
155     {
156         this.file = file;
157     } //-- void setFile( ActivationFile )
158 
159     /**
160      * Set specifies that this profile will be activated when a
161      * matching JDK is detected.
162      * 
163      * @param jdk
164      */
165     public void setJdk( String jdk )
166     {
167         this.jdk = jdk;
168     } //-- void setJdk( String )
169 
170     /**
171      * Set specifies that this profile will be activated when
172      * matching OS attributes are detected.
173      * 
174      * @param os
175      */
176     public void setOs( ActivationOS os )
177     {
178         this.os = os;
179     } //-- void setOs( ActivationOS )
180 
181     /**
182      * Set specifies that this profile will be activated when this
183      * System property is specified.
184      * 
185      * @param property
186      */
187     public void setProperty( ActivationProperty property )
188     {
189         this.property = property;
190     } //-- void setProperty( ActivationProperty )
191 
192 
193 }