View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.4.0,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.profiles;
25  
26  /**
27   * 
28   *         The conditions within the build runtime environment
29   * which will trigger
30   *         the automatic inclusion of the parent build profile.
31   *       
32   * 
33   * @version $Revision$ $Date$
34   */
35  @SuppressWarnings( "all" )
36  public class Activation
37      implements java.io.Serializable
38  {
39  
40        //--------------------------/
41       //- Class/Member Variables -/
42      //--------------------------/
43  
44      /**
45       * Flag specifying whether this profile is active as a default.
46       */
47      private boolean activeByDefault = false;
48  
49      /**
50       * 
51       *             Specifies that this profile will be activated
52       * when a matching JDK is detected.
53       *           
54       */
55      private String jdk;
56  
57      /**
58       * 
59       *             Specifies that this profile will be activated
60       * when matching OS attributes are detected.
61       *           
62       */
63      private ActivationOS os;
64  
65      /**
66       * 
67       *             Specifies that this profile will be activated
68       * when this property is specified.
69       *           
70       */
71      private ActivationProperty property;
72  
73      /**
74       * 
75       *              Specifies that this profile will be activated
76       * based on existence of a file.
77       *              
78       */
79      private ActivationFile file;
80  
81  
82        //-----------/
83       //- Methods -/
84      //-----------/
85  
86      /**
87       * Get specifies that this profile will be activated based on
88       * existence of a file.
89       * 
90       * @return ActivationFile
91       */
92      public ActivationFile getFile()
93      {
94          return this.file;
95      } //-- ActivationFile getFile()
96  
97      /**
98       * Get specifies that this profile will be activated when a
99       * matching JDK is detected.
100      * 
101      * @return String
102      */
103     public String getJdk()
104     {
105         return this.jdk;
106     } //-- String getJdk()
107 
108     /**
109      * Get specifies that this profile will be activated when
110      * matching OS attributes are detected.
111      * 
112      * @return ActivationOS
113      */
114     public ActivationOS getOs()
115     {
116         return this.os;
117     } //-- ActivationOS getOs()
118 
119     /**
120      * Get specifies that this profile will be activated when this
121      * property is specified.
122      * 
123      * @return ActivationProperty
124      */
125     public ActivationProperty getProperty()
126     {
127         return this.property;
128     } //-- ActivationProperty getProperty()
129 
130     /**
131      * Get flag specifying whether this profile is active as a
132      * default.
133      * 
134      * @return boolean
135      */
136     public boolean isActiveByDefault()
137     {
138         return this.activeByDefault;
139     } //-- boolean isActiveByDefault()
140 
141     /**
142      * Set flag specifying whether this profile is active as a
143      * default.
144      * 
145      * @param activeByDefault a activeByDefault object.
146      */
147     public void setActiveByDefault( boolean activeByDefault )
148     {
149         this.activeByDefault = activeByDefault;
150     } //-- void setActiveByDefault( boolean )
151 
152     /**
153      * Set specifies that this profile will be activated based on
154      * existence of a file.
155      * 
156      * @param file a file object.
157      */
158     public void setFile( ActivationFile file )
159     {
160         this.file = file;
161     } //-- void setFile( ActivationFile )
162 
163     /**
164      * Set specifies that this profile will be activated when a
165      * matching JDK is detected.
166      * 
167      * @param jdk a jdk object.
168      */
169     public void setJdk( String jdk )
170     {
171         this.jdk = jdk;
172     } //-- void setJdk( String )
173 
174     /**
175      * Set specifies that this profile will be activated when
176      * matching OS attributes are detected.
177      * 
178      * @param os a os object.
179      */
180     public void setOs( ActivationOS os )
181     {
182         this.os = os;
183     } //-- void setOs( ActivationOS )
184 
185     /**
186      * Set specifies that this profile will be activated when this
187      * property is specified.
188      * 
189      * @param property a property object.
190      */
191     public void setProperty( ActivationProperty property )
192     {
193         this.property = property;
194     } //-- void setProperty( ActivationProperty )
195 
196 }