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.settings;
25  
26  /**
27   * 
28   *         
29   *         This is the file specification used to activate a
30   * profile. The missing value will be a the location
31   *         of a file that needs to exist, and if it doesn't the
32   * profile must run.  On the other hand exists will test
33   *         for the existence of the file and if it is there will
34   * run the profile.
35   *         
36   *       
37   * 
38   * @version $Revision$ $Date$
39   */
40  @SuppressWarnings( "all" )
41  public class ActivationFile
42      implements java.io.Serializable, java.lang.Cloneable
43  {
44  
45        //--------------------------/
46       //- Class/Member Variables -/
47      //--------------------------/
48  
49      /**
50       * 
51       *             The name of the file that should be missing to
52       * activate a
53       *             profile.
54       *           
55       */
56      private String missing;
57  
58      /**
59       * 
60       *             The name of the file that should exist to
61       * activate a profile.
62       *           
63       */
64      private String exists;
65  
66  
67        //-----------/
68       //- Methods -/
69      //-----------/
70  
71      /**
72       * Method clone.
73       * 
74       * @return ActivationFile
75       */
76      public ActivationFile clone()
77      {
78          try
79          {
80              ActivationFile copy = (ActivationFile) super.clone();
81  
82              return copy;
83          }
84          catch ( java.lang.Exception ex )
85          {
86              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
87                  + " does not support clone()" ).initCause( ex );
88          }
89      } //-- ActivationFile clone()
90  
91      /**
92       * Get the name of the file that should exist to activate a
93       * profile.
94       * 
95       * @return String
96       */
97      public String getExists()
98      {
99          return this.exists;
100     } //-- String getExists()
101 
102     /**
103      * Get the name of the file that should be missing to activate
104      * a
105      *             profile.
106      * 
107      * @return String
108      */
109     public String getMissing()
110     {
111         return this.missing;
112     } //-- String getMissing()
113 
114     /**
115      * Set the name of the file that should exist to activate a
116      * profile.
117      * 
118      * @param exists a exists object.
119      */
120     public void setExists( String exists )
121     {
122         this.exists = exists;
123     } //-- void setExists( String )
124 
125     /**
126      * Set the name of the file that should be missing to activate
127      * a
128      *             profile.
129      * 
130      * @param missing a missing object.
131      */
132     public void setMissing( String missing )
133     {
134         this.missing = missing;
135     } //-- void setMissing( String )
136 
137 }