View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-02-24 03:31:03,
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  @SuppressWarnings( "all" )
22  public class Activation
23      implements java.io.Serializable, java.lang.Cloneable
24  {
25  
26        //--------------------------/
27       //- Class/Member Variables -/
28      //--------------------------/
29  
30      /**
31       * 
32       *             Flag specifying whether this profile is active
33       * as a default.
34       *           
35       */
36      private boolean activeByDefault = false;
37  
38      /**
39       * 
40       *             
41       *             Specifies that this profile will be activated
42       * when a matching JDK is detected.
43       *             
44       *           
45       */
46      private String jdk;
47  
48      /**
49       * 
50       *             
51       *             Specifies that this profile will be activated
52       * when matching OS attributes are detected.
53       *             
54       *           
55       */
56      private ActivationOS os;
57  
58      /**
59       * 
60       *             
61       *             Specifies that this profile will be activated
62       * when this System property is specified.
63       *             
64       *           
65       */
66      private ActivationProperty property;
67  
68      /**
69       * 
70       *             
71       *             Specifies that this profile will be activated
72       * based on existence of a file.
73       *             
74       *           
75       */
76      private ActivationFile file;
77  
78  
79        //-----------/
80       //- Methods -/
81      //-----------/
82  
83      /**
84       * Method clone.
85       * 
86       * @return Activation
87       */
88      public Activation clone()
89      {
90          try
91          {
92              Activation copy = (Activation) super.clone();
93  
94              if ( this.os != null )
95              {
96                  copy.os = (ActivationOS) this.os.clone();
97              }
98  
99              if ( this.property != null )
100             {
101                 copy.property = (ActivationProperty) this.property.clone();
102             }
103 
104             if ( this.file != null )
105             {
106                 copy.file = (ActivationFile) this.file.clone();
107             }
108 
109             return copy;
110         }
111         catch ( java.lang.Exception ex )
112         {
113             throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
114                 + " does not support clone()" ).initCause( ex );
115         }
116     } //-- Activation clone()
117 
118     /**
119      * Get specifies that this profile will be activated based on
120      * existence of a file.
121      * 
122      * @return ActivationFile
123      */
124     public ActivationFile getFile()
125     {
126         return this.file;
127     } //-- ActivationFile getFile()
128 
129     /**
130      * Get specifies that this profile will be activated when a
131      * matching JDK is detected.
132      * 
133      * @return String
134      */
135     public String getJdk()
136     {
137         return this.jdk;
138     } //-- String getJdk()
139 
140     /**
141      * Get specifies that this profile will be activated when
142      * matching OS attributes are detected.
143      * 
144      * @return ActivationOS
145      */
146     public ActivationOS getOs()
147     {
148         return this.os;
149     } //-- ActivationOS getOs()
150 
151     /**
152      * Get specifies that this profile will be activated when this
153      * System property is specified.
154      * 
155      * @return ActivationProperty
156      */
157     public ActivationProperty getProperty()
158     {
159         return this.property;
160     } //-- ActivationProperty getProperty()
161 
162     /**
163      * Get flag specifying whether this profile is active as a
164      * default.
165      * 
166      * @return boolean
167      */
168     public boolean isActiveByDefault()
169     {
170         return this.activeByDefault;
171     } //-- boolean isActiveByDefault()
172 
173     /**
174      * Set flag specifying whether this profile is active as a
175      * default.
176      * 
177      * @param activeByDefault
178      */
179     public void setActiveByDefault( boolean activeByDefault )
180     {
181         this.activeByDefault = activeByDefault;
182     } //-- void setActiveByDefault( boolean )
183 
184     /**
185      * Set specifies that this profile will be activated based on
186      * existence of a file.
187      * 
188      * @param file
189      */
190     public void setFile( ActivationFile file )
191     {
192         this.file = file;
193     } //-- void setFile( ActivationFile )
194 
195     /**
196      * Set specifies that this profile will be activated when a
197      * matching JDK is detected.
198      * 
199      * @param jdk
200      */
201     public void setJdk( String jdk )
202     {
203         this.jdk = jdk;
204     } //-- void setJdk( String )
205 
206     /**
207      * Set specifies that this profile will be activated when
208      * matching OS attributes are detected.
209      * 
210      * @param os
211      */
212     public void setOs( ActivationOS os )
213     {
214         this.os = os;
215     } //-- void setOs( ActivationOS )
216 
217     /**
218      * Set specifies that this profile will be activated when this
219      * System property is specified.
220      * 
221      * @param property
222      */
223     public void setProperty( ActivationProperty property )
224     {
225         this.property = property;
226     } //-- void setProperty( ActivationProperty )
227 
228 }